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

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

Issue 6052004: Merge bleeding edge r6035 to 2.5 branch. Fix for push of random value... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.5/
Patch Set: 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 | « src/version.cc ('k') | test/mjsunit/regress/regress-974.js » ('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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 191
192 { Comment cmnt(masm_, "[ return <undefined>;"); 192 { Comment cmnt(masm_, "[ return <undefined>;");
193 // Emit a 'return undefined' in case control fell off the end of the body. 193 // Emit a 'return undefined' in case control fell off the end of the body.
194 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); 194 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex);
195 EmitReturnSequence(); 195 EmitReturnSequence();
196 } 196 }
197 } 197 }
198 198
199 199
200 void FullCodeGenerator::ClearAccumulator() {
201 __ xor(rax, rax);
202 }
203
204
200 void FullCodeGenerator::EmitReturnSequence() { 205 void FullCodeGenerator::EmitReturnSequence() {
201 Comment cmnt(masm_, "[ Return sequence"); 206 Comment cmnt(masm_, "[ Return sequence");
202 if (return_label_.is_bound()) { 207 if (return_label_.is_bound()) {
203 __ jmp(&return_label_); 208 __ jmp(&return_label_);
204 } else { 209 } else {
205 __ bind(&return_label_); 210 __ bind(&return_label_);
206 if (FLAG_trace) { 211 if (FLAG_trace) {
207 __ push(rax); 212 __ push(rax);
208 __ CallRuntime(Runtime::kTraceExit, 1); 213 __ CallRuntime(Runtime::kTraceExit, 1);
209 } 214 }
(...skipping 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after
3469 __ ret(0); 3474 __ ret(0);
3470 } 3475 }
3471 3476
3472 3477
3473 #undef __ 3478 #undef __
3474 3479
3475 3480
3476 } } // namespace v8::internal 3481 } } // namespace v8::internal
3477 3482
3478 #endif // V8_TARGET_ARCH_X64 3483 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-974.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698