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

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

Issue 6066010: Merge 6095:6198 from bleeding_edge to experimental/gc. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 11 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/x64/debug-x64.cc ('k') | src/x64/ic-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 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 { Comment cmnt(masm_, "[ return <undefined>;"); 195 { Comment cmnt(masm_, "[ return <undefined>;");
196 // Emit a 'return undefined' in case control fell off the end of the body. 196 // Emit a 'return undefined' in case control fell off the end of the body.
197 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); 197 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex);
198 EmitReturnSequence(); 198 EmitReturnSequence();
199 } 199 }
200 } 200 }
201 201
202 202
203 void FullCodeGenerator::ClearAccumulator() { 203 void FullCodeGenerator::ClearAccumulator() {
204 __ xor_(rax, rax); 204 __ Set(rax, 0);
205 } 205 }
206 206
207 207
208 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) { 208 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) {
209 Comment cmnt(masm_, "[ Stack check"); 209 Comment cmnt(masm_, "[ Stack check");
210 NearLabel ok; 210 NearLabel ok;
211 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); 211 __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
212 __ j(above_equal, &ok); 212 __ j(above_equal, &ok);
213 StackCheckStub stub; 213 StackCheckStub stub;
214 __ CallStub(&stub); 214 __ CallStub(&stub);
(...skipping 3319 matching lines...) Expand 10 before | Expand all | Expand 10 after
3534 __ ret(0); 3534 __ ret(0);
3535 } 3535 }
3536 3536
3537 3537
3538 #undef __ 3538 #undef __
3539 3539
3540 3540
3541 } } // namespace v8::internal 3541 } } // namespace v8::internal
3542 3542
3543 #endif // V8_TARGET_ARCH_X64 3543 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698