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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 10124008: Port function call type-feedback cells to x64 and ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix regsiter for proxy check on ARM. Created 8 years, 8 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 | « src/arm/code-stubs-arm.cc ('k') | src/x64/code-stubs-x64.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 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 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2354 // Code common for calls using the call stub. 2354 // Code common for calls using the call stub.
2355 ZoneList<Expression*>* args = expr->arguments(); 2355 ZoneList<Expression*>* args = expr->arguments();
2356 int arg_count = args->length(); 2356 int arg_count = args->length();
2357 { PreservePositionScope scope(masm()->positions_recorder()); 2357 { PreservePositionScope scope(masm()->positions_recorder());
2358 for (int i = 0; i < arg_count; i++) { 2358 for (int i = 0; i < arg_count; i++) {
2359 VisitForStackValue(args->at(i)); 2359 VisitForStackValue(args->at(i));
2360 } 2360 }
2361 } 2361 }
2362 // Record source position for debugger. 2362 // Record source position for debugger.
2363 SetSourcePosition(expr->position()); 2363 SetSourcePosition(expr->position());
2364
2365 // Record call targets in unoptimized code, but not in the snapshot.
2366 if (!Serializer::enabled()) {
2367 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
2368 Handle<Object> uninitialized =
2369 TypeFeedbackCells::UninitializedSentinel(isolate());
2370 Handle<JSGlobalPropertyCell> cell =
2371 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2372 RecordTypeFeedbackCell(expr->id(), cell);
2373 __ mov(r2, Operand(cell));
2374 }
2375
2364 CallFunctionStub stub(arg_count, flags); 2376 CallFunctionStub stub(arg_count, flags);
2365 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2377 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2366 __ CallStub(&stub); 2378 __ CallStub(&stub);
2367 RecordJSReturnSite(expr); 2379 RecordJSReturnSite(expr);
2368 // Restore context register. 2380 // Restore context register.
2369 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2381 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2370 context()->DropAndPlug(1, r0); 2382 context()->DropAndPlug(1, r0);
2371 } 2383 }
2372 2384
2373 2385
(...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
4619 *context_length = 0; 4631 *context_length = 0;
4620 return previous_; 4632 return previous_;
4621 } 4633 }
4622 4634
4623 4635
4624 #undef __ 4636 #undef __
4625 4637
4626 } } // namespace v8::internal 4638 } } // namespace v8::internal
4627 4639
4628 #endif // V8_TARGET_ARCH_ARM 4640 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698