| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/builtins.h" | 5 #include "src/builtins.h" |
| 6 | 6 |
| 7 #include "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/api-natives.h" | 9 #include "src/api-natives.h" |
| 10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
| (...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 var_x.Bind(assembler->CallStub(callable, context, x)); | 2091 var_x.Bind(assembler->CallStub(callable, context, x)); |
| 2092 assembler->Goto(&loop); | 2092 assembler->Goto(&loop); |
| 2093 } | 2093 } |
| 2094 } | 2094 } |
| 2095 } | 2095 } |
| 2096 | 2096 |
| 2097 assembler->Bind(&do_fsqrt); | 2097 assembler->Bind(&do_fsqrt); |
| 2098 { | 2098 { |
| 2099 Node* x = var_fsqrt_x.value(); | 2099 Node* x = var_fsqrt_x.value(); |
| 2100 Node* value = assembler->Float64Sqrt(x); | 2100 Node* value = assembler->Float64Sqrt(x); |
| 2101 Node* result = assembler->Allocate(HeapNumber::kSize, | 2101 Node* result = assembler->AllocateHeapNumberWithValue(value); |
| 2102 compiler::CodeStubAssembler::kNone); | |
| 2103 assembler->StoreMapNoWriteBarrier(result, | |
| 2104 assembler->HeapNumberMapConstant()); | |
| 2105 assembler->StoreHeapNumberValue(result, value); | |
| 2106 assembler->Return(result); | 2102 assembler->Return(result); |
| 2107 } | 2103 } |
| 2108 } | 2104 } |
| 2109 | 2105 |
| 2110 // ----------------------------------------------------------------------------- | 2106 // ----------------------------------------------------------------------------- |
| 2111 // ES6 section 26.1 The Reflect Object | 2107 // ES6 section 26.1 The Reflect Object |
| 2112 | 2108 |
| 2113 | 2109 |
| 2114 // ES6 section 26.1.3 Reflect.defineProperty | 2110 // ES6 section 26.1.3 Reflect.defineProperty |
| 2115 BUILTIN(ReflectDefineProperty) { | 2111 BUILTIN(ReflectDefineProperty) { |
| (...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4624 BUILTIN_LIST_T(DEFINE_BUILTIN_ACCESSOR_T) | 4620 BUILTIN_LIST_T(DEFINE_BUILTIN_ACCESSOR_T) |
| 4625 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 4621 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
| 4626 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 4622 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 4627 #undef DEFINE_BUILTIN_ACCESSOR_C | 4623 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 4628 #undef DEFINE_BUILTIN_ACCESSOR_A | 4624 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 4629 #undef DEFINE_BUILTIN_ACCESSOR_T | 4625 #undef DEFINE_BUILTIN_ACCESSOR_T |
| 4630 #undef DEFINE_BUILTIN_ACCESSOR_H | 4626 #undef DEFINE_BUILTIN_ACCESSOR_H |
| 4631 | 4627 |
| 4632 } // namespace internal | 4628 } // namespace internal |
| 4633 } // namespace v8 | 4629 } // namespace v8 |
| OLD | NEW |