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

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

Issue 10855098: Deoptimization support for accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tiny test changes. Rebased. Created 8 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 | « src/arm/deoptimizer-arm.cc ('k') | src/arm/stub-cache-arm.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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 : Translation::kSelfLiteralId; 487 : Translation::kSelfLiteralId;
488 488
489 switch (environment->frame_type()) { 489 switch (environment->frame_type()) {
490 case JS_FUNCTION: 490 case JS_FUNCTION:
491 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 491 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
492 break; 492 break;
493 case JS_CONSTRUCT: 493 case JS_CONSTRUCT:
494 translation->BeginConstructStubFrame(closure_id, translation_size); 494 translation->BeginConstructStubFrame(closure_id, translation_size);
495 break; 495 break;
496 case JS_SETTER: 496 case JS_SETTER:
497 // TODO(svenpanne) Implement me! 497 ASSERT(translation_size == 2);
498 ASSERT(height == 0);
499 translation->BeginSetterStubFrame(closure_id);
498 break; 500 break;
499 case ARGUMENTS_ADAPTOR: 501 case ARGUMENTS_ADAPTOR:
500 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 502 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
501 break; 503 break;
502 } 504 }
503 for (int i = 0; i < translation_size; ++i) { 505 for (int i = 0; i < translation_size; ++i) {
504 LOperand* value = environment->values()->at(i); 506 LOperand* value = environment->values()->at(i);
505 // spilled_registers_ and spilled_double_registers_ are either 507 // spilled_registers_ and spilled_double_registers_ are either
506 // both NULL or both set. 508 // both NULL or both set.
507 if (environment->spilled_registers() != NULL && value != NULL) { 509 if (environment->spilled_registers() != NULL && value != NULL) {
(...skipping 5019 matching lines...) Expand 10 before | Expand all | Expand 10 after
5527 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5528 __ ldr(result, FieldMemOperand(scratch, 5530 __ ldr(result, FieldMemOperand(scratch,
5529 FixedArray::kHeaderSize - kPointerSize)); 5531 FixedArray::kHeaderSize - kPointerSize));
5530 __ bind(&done); 5532 __ bind(&done);
5531 } 5533 }
5532 5534
5533 5535
5534 #undef __ 5536 #undef __
5535 5537
5536 } } // namespace v8::internal 5538 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698