Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: src/ic/arm64/ic-arm64.cc

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 #define __ ACCESS_MASM(masm) 16 #define __ ACCESS_MASM(masm)
17 17
18 18
19 // "type" holds an instance type on entry and is not clobbered. 19 // "type" holds an instance type on entry and is not clobbered.
20 // Generated code branch on "global_object" if type is any kind of global 20 // Generated code branch on "global_object" if type is any kind of global
21 // JS object. 21 // JS object.
22 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, Register type, 22 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, Register type,
23 Label* global_object) { 23 Label* global_object) {
24 __ Cmp(type, JS_GLOBAL_OBJECT_TYPE); 24 __ Cmp(type, JS_GLOBAL_OBJECT_TYPE);
25 __ Ccmp(type, JS_BUILTINS_OBJECT_TYPE, ZFlag, ne);
26 __ Ccmp(type, JS_GLOBAL_PROXY_TYPE, ZFlag, ne); 25 __ Ccmp(type, JS_GLOBAL_PROXY_TYPE, ZFlag, ne);
27 __ B(eq, global_object); 26 __ B(eq, global_object);
28 } 27 }
29 28
30 29
31 // Helper function used from LoadIC GenerateNormal. 30 // Helper function used from LoadIC GenerateNormal.
32 // 31 //
33 // elements: Property dictionary. It is not clobbered if a jump to the miss 32 // elements: Property dictionary. It is not clobbered if a jump to the miss
34 // label is done. 33 // label is done.
35 // name: Property name. It is not clobbered if a jump to the miss label is 34 // name: Property name. It is not clobbered if a jump to the miss label is
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } else { 889 } else {
891 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ); 890 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ);
892 // This is JumpIfSmi(smi_reg, branch_imm). 891 // This is JumpIfSmi(smi_reg, branch_imm).
893 patcher.tbz(smi_reg, 0, branch_imm); 892 patcher.tbz(smi_reg, 0, branch_imm);
894 } 893 }
895 } 894 }
896 } // namespace internal 895 } // namespace internal
897 } // namespace v8 896 } // namespace v8
898 897
899 #endif // V8_TARGET_ARCH_ARM64 898 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698