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

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

Issue 6016007: Change codegen for literals to emit xor when literal is zero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removing unneeded Set method. Created 10 years 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 | « no previous file | src/ia32/lithium-codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 UNREACHABLE(); // Not used on IA32. 372 UNREACHABLE(); // Not used on IA32.
373 } 373 }
374 374
375 375
376 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { 376 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const {
377 } 377 }
378 378
379 379
380 void FullCodeGenerator::AccumulatorValueContext::Plug( 380 void FullCodeGenerator::AccumulatorValueContext::Plug(
381 Handle<Object> lit) const { 381 Handle<Object> lit) const {
382 __ mov(result_register(), lit); 382 __ Set(result_register(), Immediate(lit));
383 } 383 }
384 384
385 385
386 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { 386 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const {
387 // Immediates can be pushed directly. 387 // Immediates can be pushed directly.
388 __ push(Immediate(lit)); 388 __ push(Immediate(lit));
389 } 389 }
390 390
391 391
392 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 392 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
(...skipping 3867 matching lines...) Expand 10 before | Expand all | Expand 10 after
4260 // And return. 4260 // And return.
4261 __ ret(0); 4261 __ ret(0);
4262 } 4262 }
4263 4263
4264 4264
4265 #undef __ 4265 #undef __
4266 4266
4267 } } // namespace v8::internal 4267 } } // namespace v8::internal
4268 4268
4269 #endif // V8_TARGET_ARCH_IA32 4269 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698