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

Side by Side Diff: src/ic/ppc/ic-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 __ cmpi(type, Operand(JS_GLOBAL_OBJECT_TYPE)); 27 __ cmpi(type, Operand(JS_GLOBAL_OBJECT_TYPE));
28 __ beq(global_object); 28 __ beq(global_object);
29 __ cmpi(type, Operand(JS_BUILTINS_OBJECT_TYPE));
30 __ beq(global_object);
31 __ cmpi(type, Operand(JS_GLOBAL_PROXY_TYPE)); 29 __ cmpi(type, Operand(JS_GLOBAL_PROXY_TYPE));
32 __ beq(global_object); 30 __ beq(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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 patcher.EmitCondition(ne); 919 patcher.EmitCondition(ne);
922 } else { 920 } else {
923 DCHECK(Assembler::GetCondition(branch_instr) == ne); 921 DCHECK(Assembler::GetCondition(branch_instr) == ne);
924 patcher.EmitCondition(eq); 922 patcher.EmitCondition(eq);
925 } 923 }
926 } 924 }
927 } // namespace internal 925 } // namespace internal
928 } // namespace v8 926 } // namespace v8
929 927
930 #endif // V8_TARGET_ARCH_PPC 928 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698