| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 | 
| 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   __ Branch(global_object, eq, type, Operand(JS_GLOBAL_OBJECT_TYPE)); | 27   __ Branch(global_object, eq, type, Operand(JS_GLOBAL_OBJECT_TYPE)); | 
| 28   __ Branch(global_object, eq, type, Operand(JS_BUILTINS_OBJECT_TYPE)); |  | 
| 29   __ Branch(global_object, eq, type, Operand(JS_GLOBAL_PROXY_TYPE)); | 28   __ Branch(global_object, eq, type, Operand(JS_GLOBAL_PROXY_TYPE)); | 
| 30 } | 29 } | 
| 31 | 30 | 
| 32 | 31 | 
| 33 // Helper function used from LoadIC GenerateNormal. | 32 // Helper function used from LoadIC GenerateNormal. | 
| 34 // | 33 // | 
| 35 // elements: Property dictionary. It is not clobbered if a jump to the miss | 34 // elements: Property dictionary. It is not clobbered if a jump to the miss | 
| 36 //           label is done. | 35 //           label is done. | 
| 37 // name:     Property name. It is not clobbered if a jump to the miss label is | 36 // name:     Property name. It is not clobbered if a jump to the miss label is | 
| 38 //           done | 37 //           done | 
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 903     patcher.ChangeBranchCondition(ne); | 902     patcher.ChangeBranchCondition(ne); | 
| 904   } else { | 903   } else { | 
| 905     DCHECK(Assembler::IsBne(branch_instr)); | 904     DCHECK(Assembler::IsBne(branch_instr)); | 
| 906     patcher.ChangeBranchCondition(eq); | 905     patcher.ChangeBranchCondition(eq); | 
| 907   } | 906   } | 
| 908 } | 907 } | 
| 909 }  // namespace internal | 908 }  // namespace internal | 
| 910 }  // namespace v8 | 909 }  // namespace v8 | 
| 911 | 910 | 
| 912 #endif  // V8_TARGET_ARCH_MIPS64 | 911 #endif  // V8_TARGET_ARCH_MIPS64 | 
| OLD | NEW | 
|---|