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

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

Issue 10662045: Port r7868 (constant masking) to x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed constant masking for function argument lengths. Created 8 years, 5 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/full-codegen-ia32.cc ('k') | src/x64/macro-assembler-x64.h » ('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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 497 }
498 } 498 }
499 499
500 500
501 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { 501 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const {
502 } 502 }
503 503
504 504
505 void FullCodeGenerator::AccumulatorValueContext::Plug( 505 void FullCodeGenerator::AccumulatorValueContext::Plug(
506 Handle<Object> lit) const { 506 Handle<Object> lit) const {
507 __ Move(result_register(), lit); 507 if (lit->IsSmi()) {
508 __ SafeMove(result_register(), Smi::cast(*lit));
509 } else {
510 __ Move(result_register(), lit);
511 }
508 } 512 }
509 513
510 514
511 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { 515 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const {
512 __ Push(lit); 516 if (lit->IsSmi()) {
517 __ SafePush(Smi::cast(*lit));
518 } else {
519 __ Push(lit);
520 }
513 } 521 }
514 522
515 523
516 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 524 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
517 codegen()->PrepareForBailoutBeforeSplit(condition(), 525 codegen()->PrepareForBailoutBeforeSplit(condition(),
518 true, 526 true,
519 true_label_, 527 true_label_,
520 false_label_); 528 false_label_);
521 ASSERT(!lit->IsUndetectableObject()); // There are no undetectable literals. 529 ASSERT(!lit->IsUndetectableObject()); // There are no undetectable literals.
522 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { 530 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) {
(...skipping 4012 matching lines...) Expand 10 before | Expand all | Expand 10 after
4535 *context_length = 0; 4543 *context_length = 0;
4536 return previous_; 4544 return previous_;
4537 } 4545 }
4538 4546
4539 4547
4540 #undef __ 4548 #undef __
4541 4549
4542 } } // namespace v8::internal 4550 } } // namespace v8::internal
4543 4551
4544 #endif // V8_TARGET_ARCH_X64 4552 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698