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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 | 15 |
16 // ---------------------------------------------------------------------------- | 16 // ---------------------------------------------------------------------------- |
17 // Static IC stub generators. | 17 // Static IC stub generators. |
18 // | 18 // |
19 | 19 |
20 #define __ ACCESS_MASM(masm) | 20 #define __ ACCESS_MASM(masm) |
21 | 21 |
22 | 22 |
23 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, Register type, | 23 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, Register type, |
24 Label* global_object) { | 24 Label* global_object) { |
25 // Register usage: | 25 // Register usage: |
26 // type: holds the receiver instance type on entry. | 26 // type: holds the receiver instance type on entry. |
27 __ cmp(type, Operand(JS_GLOBAL_OBJECT_TYPE)); | 27 __ cmp(type, Operand(JS_GLOBAL_OBJECT_TYPE)); |
28 __ b(eq, global_object); | 28 __ b(eq, global_object); |
29 __ cmp(type, Operand(JS_BUILTINS_OBJECT_TYPE)); | |
30 __ b(eq, global_object); | |
31 __ cmp(type, Operand(JS_GLOBAL_PROXY_TYPE)); | 29 __ cmp(type, Operand(JS_GLOBAL_PROXY_TYPE)); |
32 __ b(eq, global_object); | 30 __ b(eq, global_object); |
33 } | 31 } |
34 | 32 |
35 | 33 |
36 // Helper function used from LoadIC GenerateNormal. | 34 // Helper function used from LoadIC GenerateNormal. |
37 // | 35 // |
38 // elements: Property dictionary. It is not clobbered if a jump to the miss | 36 // elements: Property dictionary. It is not clobbered if a jump to the miss |
39 // label is done. | 37 // label is done. |
40 // name: Property name. It is not clobbered if a jump to the miss label is | 38 // name: Property name. It is not clobbered if a jump to the miss label is |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 patcher.EmitCondition(ne); | 909 patcher.EmitCondition(ne); |
912 } else { | 910 } else { |
913 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 911 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
914 patcher.EmitCondition(eq); | 912 patcher.EmitCondition(eq); |
915 } | 913 } |
916 } | 914 } |
917 } // namespace internal | 915 } // namespace internal |
918 } // namespace v8 | 916 } // namespace v8 |
919 | 917 |
920 #endif // V8_TARGET_ARCH_ARM | 918 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |