OLD | NEW |
---|---|
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
460 // Check that the receiver isn't a smi. | 460 // Check that the receiver isn't a smi. |
461 __ tst(receiver, Operand(kSmiTagMask)); | 461 __ tst(receiver, Operand(kSmiTagMask)); |
462 __ b(eq, miss); | 462 __ b(eq, miss); |
463 | 463 |
464 // Check that the maps haven't changed. | 464 // Check that the maps haven't changed. |
465 Register reg = | 465 Register reg = |
466 CheckPrototypes(object, receiver, holder, scratch1, scratch2, name, miss); | 466 CheckPrototypes(object, receiver, holder, scratch1, scratch2, name, miss); |
467 | 467 |
468 // Push the arguments on the JS stack of the caller. | 468 // Push the arguments on the JS stack of the caller. |
469 __ push(receiver); // receiver | 469 __ push(receiver); // receiver |
470 __ push(reg); // holder | |
470 __ mov(ip, Operand(Handle<AccessorInfo>(callback))); // callback data | 471 __ mov(ip, Operand(Handle<AccessorInfo>(callback))); // callback data |
471 __ push(ip); | 472 __ push(ip); |
473 __ ldr(reg, FieldMemOperand(ip, AccessorInfo::kDataOffset)); | |
antonm
2009/07/23 21:12:58
why not push data immediately if data() belongs to
iposva
2009/07/24 00:30:07
Maybe because on ARM loading an Object constant is
antonm
2009/07/24 02:43:21
Sorry, didn't know that and was under induction of
Vitaly Repeshko
2009/07/24 13:45:38
I didn't measure performance here, but based on wh
| |
474 __ push(reg); | |
472 __ push(name_reg); // name | 475 __ push(name_reg); // name |
473 __ push(reg); // holder | |
474 | 476 |
475 // Do tail-call to the runtime system. | 477 // Do tail-call to the runtime system. |
476 ExternalReference load_callback_property = | 478 ExternalReference load_callback_property = |
477 ExternalReference(IC_Utility(IC::kLoadCallbackProperty)); | 479 ExternalReference(IC_Utility(IC::kLoadCallbackProperty)); |
478 __ TailCallRuntime(load_callback_property, 4); | 480 __ TailCallRuntime(load_callback_property, 5); |
479 } | 481 } |
480 | 482 |
481 | 483 |
482 void StubCompiler::GenerateLoadInterceptor(JSObject* object, | 484 void StubCompiler::GenerateLoadInterceptor(JSObject* object, |
483 JSObject* holder, | 485 JSObject* holder, |
484 Smi* lookup_hint, | 486 Smi* lookup_hint, |
485 Register receiver, | 487 Register receiver, |
486 Register name_reg, | 488 Register name_reg, |
487 Register scratch1, | 489 Register scratch1, |
488 Register scratch2, | 490 Register scratch2, |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1328 __ Jump(ic, RelocInfo::CODE_TARGET); | 1330 __ Jump(ic, RelocInfo::CODE_TARGET); |
1329 | 1331 |
1330 // Return the generated code. | 1332 // Return the generated code. |
1331 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); | 1333 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); |
1332 } | 1334 } |
1333 | 1335 |
1334 | 1336 |
1335 #undef __ | 1337 #undef __ |
1336 | 1338 |
1337 } } // namespace v8::internal | 1339 } } // namespace v8::internal |
OLD | NEW |