OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 __ Move(prototype, Handle<Map>(function->initial_map())); | 312 __ Move(prototype, Handle<Map>(function->initial_map())); |
313 // Load the prototype from the initial map. | 313 // Load the prototype from the initial map. |
314 __ ldr(prototype, FieldMemOperand(prototype, Map::kPrototypeOffset)); | 314 __ ldr(prototype, FieldMemOperand(prototype, Map::kPrototypeOffset)); |
315 } | 315 } |
316 | 316 |
317 | 317 |
318 void StubCompiler::DoGenerateFastPropertyLoad(MacroAssembler* masm, | 318 void StubCompiler::DoGenerateFastPropertyLoad(MacroAssembler* masm, |
319 Register dst, | 319 Register dst, |
320 Register src, | 320 Register src, |
321 bool inobject, | 321 bool inobject, |
322 int index) { | 322 int index, |
| 323 StorageType storage_type) { |
323 int offset = index * kPointerSize; | 324 int offset = index * kPointerSize; |
324 if (!inobject) { | 325 if (!inobject) { |
325 // Calculate the offset into the properties array. | 326 // Calculate the offset into the properties array. |
326 offset = offset + FixedArray::kHeaderSize; | 327 offset = offset + FixedArray::kHeaderSize; |
327 __ ldr(dst, FieldMemOperand(src, JSObject::kPropertiesOffset)); | 328 __ ldr(dst, FieldMemOperand(src, JSObject::kPropertiesOffset)); |
328 src = dst; | 329 src = dst; |
329 } | 330 } |
330 __ ldr(dst, FieldMemOperand(src, offset)); | 331 __ ldr(dst, FieldMemOperand(src, offset)); |
331 } | 332 } |
332 | 333 |
(...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3710 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3711 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3711 } | 3712 } |
3712 } | 3713 } |
3713 | 3714 |
3714 | 3715 |
3715 #undef __ | 3716 #undef __ |
3716 | 3717 |
3717 } } // namespace v8::internal | 3718 } } // namespace v8::internal |
3718 | 3719 |
3719 #endif // V8_TARGET_ARCH_ARM | 3720 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |