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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/deoptimizer-mips.cc ('k') | src/mips/stub-cache-mips.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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 ? DefineDeoptimizationLiteral(environment->closure()) 445 ? DefineDeoptimizationLiteral(environment->closure())
446 : Translation::kSelfLiteralId; 446 : Translation::kSelfLiteralId;
447 447
448 switch (environment->frame_type()) { 448 switch (environment->frame_type()) {
449 case JS_FUNCTION: 449 case JS_FUNCTION:
450 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 450 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
451 break; 451 break;
452 case JS_CONSTRUCT: 452 case JS_CONSTRUCT:
453 translation->BeginConstructStubFrame(closure_id, translation_size); 453 translation->BeginConstructStubFrame(closure_id, translation_size);
454 break; 454 break;
455 case JS_GETTER:
456 ASSERT(translation_size == 1);
457 ASSERT(height == 0);
458 translation->BeginGetterStubFrame(closure_id);
459 break;
455 case JS_SETTER: 460 case JS_SETTER:
456 ASSERT(translation_size == 2); 461 ASSERT(translation_size == 2);
457 ASSERT(height == 0); 462 ASSERT(height == 0);
458 translation->BeginSetterStubFrame(closure_id); 463 translation->BeginSetterStubFrame(closure_id);
459 break; 464 break;
460 case ARGUMENTS_ADAPTOR: 465 case ARGUMENTS_ADAPTOR:
461 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 466 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
462 break; 467 break;
463 } 468 }
464 for (int i = 0; i < translation_size; ++i) { 469 for (int i = 0; i < translation_size; ++i) {
(...skipping 4951 matching lines...) Expand 10 before | Expand all | Expand 10 after
5416 __ Subu(scratch, result, scratch); 5421 __ Subu(scratch, result, scratch);
5417 __ lw(result, FieldMemOperand(scratch, 5422 __ lw(result, FieldMemOperand(scratch,
5418 FixedArray::kHeaderSize - kPointerSize)); 5423 FixedArray::kHeaderSize - kPointerSize));
5419 __ bind(&done); 5424 __ bind(&done);
5420 } 5425 }
5421 5426
5422 5427
5423 #undef __ 5428 #undef __
5424 5429
5425 } } // namespace v8::internal 5430 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698