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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 155682: Get rid of unnecessary handle management when invoking interceptors. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 Register reg = 498 Register reg =
499 CheckPrototypes(object, receiver, holder, scratch1, scratch2, name, miss); 499 CheckPrototypes(object, receiver, holder, scratch1, scratch2, name, miss);
500 500
501 // Push the arguments on the JS stack of the caller. 501 // Push the arguments on the JS stack of the caller.
502 __ push(receiver); // receiver 502 __ push(receiver); // receiver
503 __ push(reg); // holder 503 __ push(reg); // holder
504 __ push(name_reg); // name 504 __ push(name_reg); // name
505 __ mov(scratch1, Operand(lookup_hint)); 505 __ mov(scratch1, Operand(lookup_hint));
506 __ push(scratch1); 506 __ push(scratch1);
507 507
508 InterceptorInfo* interceptor = holder->GetNamedInterceptor();
509 ASSERT(!Heap::InNewSpace(interceptor));
510 __ mov(scratch1, Operand(Handle<Object>(interceptor)));
511 __ push(scratch1);
512 __ ldr(scratch2, FieldMemOperand(scratch1, InterceptorInfo::kDataOffset));
513 __ push(scratch2);
514
508 // Do tail-call to the runtime system. 515 // Do tail-call to the runtime system.
509 ExternalReference load_ic_property = 516 ExternalReference load_ic_property =
510 ExternalReference(IC_Utility(IC::kLoadInterceptorProperty)); 517 ExternalReference(IC_Utility(IC::kLoadInterceptorProperty));
511 __ TailCallRuntime(load_ic_property, 4); 518 __ TailCallRuntime(load_ic_property, 6);
512 } 519 }
513 520
514 521
515 Object* StubCompiler::CompileLazyCompile(Code::Flags flags) { 522 Object* StubCompiler::CompileLazyCompile(Code::Flags flags) {
516 // ----------- S t a t e ------------- 523 // ----------- S t a t e -------------
517 // -- r1: function 524 // -- r1: function
518 // -- lr: return address 525 // -- lr: return address
519 // ----------------------------------- 526 // -----------------------------------
520 527
521 // Enter an internal frame. 528 // Enter an internal frame.
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 __ Jump(ic, RelocInfo::CODE_TARGET); 1337 __ Jump(ic, RelocInfo::CODE_TARGET);
1331 1338
1332 // Return the generated code. 1339 // Return the generated code.
1333 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); 1340 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name);
1334 } 1341 }
1335 1342
1336 1343
1337 #undef __ 1344 #undef __
1338 1345
1339 } } // namespace v8::internal 1346 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698