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

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

Issue 10836133: Inline simple setter calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added comment. 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/mips/lithium-mips.cc ('k') | src/x64/lithium-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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 ? DefineDeoptimizationLiteral(environment->closure()) 373 ? DefineDeoptimizationLiteral(environment->closure())
374 : Translation::kSelfLiteralId; 374 : Translation::kSelfLiteralId;
375 375
376 switch (environment->frame_type()) { 376 switch (environment->frame_type()) {
377 case JS_FUNCTION: 377 case JS_FUNCTION:
378 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 378 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
379 break; 379 break;
380 case JS_CONSTRUCT: 380 case JS_CONSTRUCT:
381 translation->BeginConstructStubFrame(closure_id, translation_size); 381 translation->BeginConstructStubFrame(closure_id, translation_size);
382 break; 382 break;
383 case JS_SETTER:
384 // TODO(svenpanne) Implement me!
385 break;
383 case ARGUMENTS_ADAPTOR: 386 case ARGUMENTS_ADAPTOR:
384 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 387 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
385 break; 388 break;
386 default:
387 UNREACHABLE();
388 } 389 }
389 for (int i = 0; i < translation_size; ++i) { 390 for (int i = 0; i < translation_size; ++i) {
390 LOperand* value = environment->values()->at(i); 391 LOperand* value = environment->values()->at(i);
391 // spilled_registers_ and spilled_double_registers_ are either 392 // spilled_registers_ and spilled_double_registers_ are either
392 // both NULL or both set. 393 // both NULL or both set.
393 if (environment->spilled_registers() != NULL && value != NULL) { 394 if (environment->spilled_registers() != NULL && value != NULL) {
394 if (value->IsRegister() && 395 if (value->IsRegister() &&
395 environment->spilled_registers()[value->index()] != NULL) { 396 environment->spilled_registers()[value->index()] != NULL) {
396 translation->MarkDuplicate(); 397 translation->MarkDuplicate();
397 AddToTranslation(translation, 398 AddToTranslation(translation,
(...skipping 4763 matching lines...) Expand 10 before | Expand all | Expand 10 after
5161 FixedArray::kHeaderSize - kPointerSize)); 5162 FixedArray::kHeaderSize - kPointerSize));
5162 __ bind(&done); 5163 __ bind(&done);
5163 } 5164 }
5164 5165
5165 5166
5166 #undef __ 5167 #undef __
5167 5168
5168 } } // namespace v8::internal 5169 } } // namespace v8::internal
5169 5170
5170 #endif // V8_TARGET_ARCH_X64 5171 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698