| OLD | NEW | 
|---|
| 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/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" | 
| 8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" | 
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" | 
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 162       masm, miss_label, &done, receiver, properties, name, scratch1); | 162       masm, miss_label, &done, receiver, properties, name, scratch1); | 
| 163   __ bind(&done); | 163   __ bind(&done); | 
| 164   __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); | 164   __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); | 
| 165 } | 165 } | 
| 166 | 166 | 
| 167 | 167 | 
| 168 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( | 168 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( | 
| 169     MacroAssembler* masm, int index, Register result, Label* miss) { | 169     MacroAssembler* masm, int index, Register result, Label* miss) { | 
| 170   const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); | 170   const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); | 
| 171   __ LoadP(result, MemOperand(cp, offset)); | 171   __ LoadP(result, MemOperand(cp, offset)); | 
| 172   __ LoadP(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | 172   __ LoadP(result, | 
|  | 173            FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); | 
| 173   __ LoadP(result, MemOperand(result, Context::SlotOffset(index))); | 174   __ LoadP(result, MemOperand(result, Context::SlotOffset(index))); | 
| 174   // Load its initial map. The global functions all have initial maps. | 175   // Load its initial map. The global functions all have initial maps. | 
| 175   __ LoadP(result, | 176   __ LoadP(result, | 
| 176            FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); | 177            FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); | 
| 177   // Load the prototype from the initial map. | 178   // Load the prototype from the initial map. | 
| 178   __ LoadP(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 179   __ LoadP(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 
| 179 } | 180 } | 
| 180 | 181 | 
| 181 | 182 | 
| 182 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | 183 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | 
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 786   // Return the generated code. | 787   // Return the generated code. | 
| 787   return GetCode(kind(), Code::NORMAL, name); | 788   return GetCode(kind(), Code::NORMAL, name); | 
| 788 } | 789 } | 
| 789 | 790 | 
| 790 | 791 | 
| 791 #undef __ | 792 #undef __ | 
| 792 }  // namespace internal | 793 }  // namespace internal | 
| 793 }  // namespace v8 | 794 }  // namespace v8 | 
| 794 | 795 | 
| 795 #endif  // V8_TARGET_ARCH_ARM | 796 #endif  // V8_TARGET_ARCH_ARM | 
| OLD | NEW | 
|---|