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

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

Issue 10910110: Fixed deoptimization of inlined getters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 ? DefineDeoptimizationLiteral(environment->closure()) 477 ? DefineDeoptimizationLiteral(environment->closure())
478 : Translation::kSelfLiteralId; 478 : Translation::kSelfLiteralId;
479 479
480 switch (environment->frame_type()) { 480 switch (environment->frame_type()) {
481 case JS_FUNCTION: 481 case JS_FUNCTION:
482 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 482 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
483 break; 483 break;
484 case JS_CONSTRUCT: 484 case JS_CONSTRUCT:
485 translation->BeginConstructStubFrame(closure_id, translation_size); 485 translation->BeginConstructStubFrame(closure_id, translation_size);
486 break; 486 break;
487 case JS_GETTER:
488 ASSERT(translation_size == 1);
489 ASSERT(height == 0);
490 translation->BeginGetterStubFrame(closure_id);
491 break;
487 case JS_SETTER: 492 case JS_SETTER:
488 ASSERT(translation_size == 2); 493 ASSERT(translation_size == 2);
489 ASSERT(height == 0); 494 ASSERT(height == 0);
490 translation->BeginSetterStubFrame(closure_id); 495 translation->BeginSetterStubFrame(closure_id);
491 break; 496 break;
492 case ARGUMENTS_ADAPTOR: 497 case ARGUMENTS_ADAPTOR:
493 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 498 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
494 break; 499 break;
495 } 500 }
496 for (int i = 0; i < translation_size; ++i) { 501 for (int i = 0; i < translation_size; ++i) {
(...skipping 5119 matching lines...) Expand 10 before | Expand all | Expand 10 after
5616 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5621 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5617 __ ldr(result, FieldMemOperand(scratch, 5622 __ ldr(result, FieldMemOperand(scratch,
5618 FixedArray::kHeaderSize - kPointerSize)); 5623 FixedArray::kHeaderSize - kPointerSize));
5619 __ bind(&done); 5624 __ bind(&done);
5620 } 5625 }
5621 5626
5622 5627
5623 #undef __ 5628 #undef __
5624 5629
5625 } } // namespace v8::internal 5630 } } // 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