| 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-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
| (...skipping 2696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2707 if (entry->contains(pc)) { | 2707 if (entry->contains(pc)) { |
| 2708 return names_[i]; | 2708 return names_[i]; |
| 2709 } | 2709 } |
| 2710 } | 2710 } |
| 2711 } | 2711 } |
| 2712 return NULL; | 2712 return NULL; |
| 2713 } | 2713 } |
| 2714 | 2714 |
| 2715 | 2715 |
| 2716 void Builtins::Generate_InterruptCheck(MacroAssembler* masm) { | 2716 void Builtins::Generate_InterruptCheck(MacroAssembler* masm) { |
| 2717 masm->TailCallRuntime(Runtime::kInterrupt, 0, 1); | 2717 masm->TailCallRuntime(Runtime::kInterrupt, 0); |
| 2718 } | 2718 } |
| 2719 | 2719 |
| 2720 | 2720 |
| 2721 void Builtins::Generate_StackCheck(MacroAssembler* masm) { | 2721 void Builtins::Generate_StackCheck(MacroAssembler* masm) { |
| 2722 masm->TailCallRuntime(Runtime::kStackGuard, 0, 1); | 2722 masm->TailCallRuntime(Runtime::kStackGuard, 0); |
| 2723 } | 2723 } |
| 2724 | 2724 |
| 2725 | 2725 |
| 2726 #define DEFINE_BUILTIN_ACCESSOR_C(name, ignore) \ | 2726 #define DEFINE_BUILTIN_ACCESSOR_C(name, ignore) \ |
| 2727 Handle<Code> Builtins::name() { \ | 2727 Handle<Code> Builtins::name() { \ |
| 2728 Code** code_address = \ | 2728 Code** code_address = \ |
| 2729 reinterpret_cast<Code**>(builtin_address(k##name)); \ | 2729 reinterpret_cast<Code**>(builtin_address(k##name)); \ |
| 2730 return Handle<Code>(code_address); \ | 2730 return Handle<Code>(code_address); \ |
| 2731 } | 2731 } |
| 2732 #define DEFINE_BUILTIN_ACCESSOR_A(name, kind, state, extra) \ | 2732 #define DEFINE_BUILTIN_ACCESSOR_A(name, kind, state, extra) \ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2744 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 2744 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
| 2745 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 2745 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 2746 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 2746 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
| 2747 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 2747 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 2748 #undef DEFINE_BUILTIN_ACCESSOR_C | 2748 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 2749 #undef DEFINE_BUILTIN_ACCESSOR_A | 2749 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 2750 | 2750 |
| 2751 | 2751 |
| 2752 } // namespace internal | 2752 } // namespace internal |
| 2753 } // namespace v8 | 2753 } // namespace v8 |
| OLD | NEW |