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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/deoptimizer-x64.cc ('k') | src/x64/stub-cache-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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ? DefineDeoptimizationLiteral(environment->closure()) 364 ? DefineDeoptimizationLiteral(environment->closure())
365 : Translation::kSelfLiteralId; 365 : Translation::kSelfLiteralId;
366 366
367 switch (environment->frame_type()) { 367 switch (environment->frame_type()) {
368 case JS_FUNCTION: 368 case JS_FUNCTION:
369 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 369 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
370 break; 370 break;
371 case JS_CONSTRUCT: 371 case JS_CONSTRUCT:
372 translation->BeginConstructStubFrame(closure_id, translation_size); 372 translation->BeginConstructStubFrame(closure_id, translation_size);
373 break; 373 break;
374 case JS_GETTER:
375 ASSERT(translation_size == 1);
376 ASSERT(height == 0);
377 translation->BeginGetterStubFrame(closure_id);
378 break;
374 case JS_SETTER: 379 case JS_SETTER:
375 ASSERT(translation_size == 2); 380 ASSERT(translation_size == 2);
376 ASSERT(height == 0); 381 ASSERT(height == 0);
377 translation->BeginSetterStubFrame(closure_id); 382 translation->BeginSetterStubFrame(closure_id);
378 break; 383 break;
379 case ARGUMENTS_ADAPTOR: 384 case ARGUMENTS_ADAPTOR:
380 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 385 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
381 break; 386 break;
382 } 387 }
383 for (int i = 0; i < translation_size; ++i) { 388 for (int i = 0; i < translation_size; ++i) {
(...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
5279 FixedArray::kHeaderSize - kPointerSize)); 5284 FixedArray::kHeaderSize - kPointerSize));
5280 __ bind(&done); 5285 __ bind(&done);
5281 } 5286 }
5282 5287
5283 5288
5284 #undef __ 5289 #undef __
5285 5290
5286 } } // namespace v8::internal 5291 } } // namespace v8::internal
5287 5292
5288 #endif // V8_TARGET_ARCH_X64 5293 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698