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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/deoptimizer-ia32.cc ('k') | src/ia32/stub-cache-ia32.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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 int closure_id = *info()->closure() != *environment->closure() 416 int closure_id = *info()->closure() != *environment->closure()
417 ? DefineDeoptimizationLiteral(environment->closure()) 417 ? DefineDeoptimizationLiteral(environment->closure())
418 : Translation::kSelfLiteralId; 418 : Translation::kSelfLiteralId;
419 switch (environment->frame_type()) { 419 switch (environment->frame_type()) {
420 case JS_FUNCTION: 420 case JS_FUNCTION:
421 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 421 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
422 break; 422 break;
423 case JS_CONSTRUCT: 423 case JS_CONSTRUCT:
424 translation->BeginConstructStubFrame(closure_id, translation_size); 424 translation->BeginConstructStubFrame(closure_id, translation_size);
425 break; 425 break;
426 case JS_GETTER:
427 ASSERT(translation_size == 1);
428 ASSERT(height == 0);
429 translation->BeginGetterStubFrame(closure_id);
430 break;
426 case JS_SETTER: 431 case JS_SETTER:
427 ASSERT(translation_size == 2); 432 ASSERT(translation_size == 2);
428 ASSERT(height == 0); 433 ASSERT(height == 0);
429 translation->BeginSetterStubFrame(closure_id); 434 translation->BeginSetterStubFrame(closure_id);
430 break; 435 break;
431 case ARGUMENTS_ADAPTOR: 436 case ARGUMENTS_ADAPTOR:
432 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 437 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
433 break; 438 break;
434 } 439 }
435 for (int i = 0; i < translation_size; ++i) { 440 for (int i = 0; i < translation_size; ++i) {
(...skipping 5075 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 FixedArray::kHeaderSize - kPointerSize)); 5516 FixedArray::kHeaderSize - kPointerSize));
5512 __ bind(&done); 5517 __ bind(&done);
5513 } 5518 }
5514 5519
5515 5520
5516 #undef __ 5521 #undef __
5517 5522
5518 } } // namespace v8::internal 5523 } } // namespace v8::internal
5519 5524
5520 #endif // V8_TARGET_ARCH_IA32 5525 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698