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

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

Issue 23938003: Move ToInt conversions to the MacroAssembler for x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 3 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/lithium-codegen-ia32.h ('k') | src/ia32/macro-assembler-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 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 ASSERT(info()->IsStub()); 441 ASSERT(info()->IsStub());
442 frame_is_built_ = true; 442 frame_is_built_ = true;
443 // Build the frame in such a way that esi isn't trashed. 443 // Build the frame in such a way that esi isn't trashed.
444 __ push(ebp); // Caller's frame pointer. 444 __ push(ebp); // Caller's frame pointer.
445 __ push(Operand(ebp, StandardFrameConstants::kContextOffset)); 445 __ push(Operand(ebp, StandardFrameConstants::kContextOffset));
446 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); 446 __ push(Immediate(Smi::FromInt(StackFrame::STUB)));
447 __ lea(ebp, Operand(esp, 2 * kPointerSize)); 447 __ lea(ebp, Operand(esp, 2 * kPointerSize));
448 Comment(";;; Deferred code"); 448 Comment(";;; Deferred code");
449 } 449 }
450 code->Generate(); 450 code->Generate();
451 __ bind(code->done());
452 if (NeedsDeferredFrame()) { 451 if (NeedsDeferredFrame()) {
452 __ bind(code->done());
453 Comment(";;; Destroy frame"); 453 Comment(";;; Destroy frame");
454 ASSERT(frame_is_built_); 454 ASSERT(frame_is_built_);
455 frame_is_built_ = false; 455 frame_is_built_ = false;
456 __ mov(esp, ebp); 456 __ mov(esp, ebp);
457 __ pop(ebp); 457 __ pop(ebp);
458 } 458 }
459 __ jmp(code->exit()); 459 __ jmp(code->exit());
460 } 460 }
461 } 461 }
462 462
(...skipping 5842 matching lines...) Expand 10 before | Expand all | Expand 10 after
6305 FixedArray::kHeaderSize - kPointerSize)); 6305 FixedArray::kHeaderSize - kPointerSize));
6306 __ bind(&done); 6306 __ bind(&done);
6307 } 6307 }
6308 6308
6309 6309
6310 #undef __ 6310 #undef __
6311 6311
6312 } } // namespace v8::internal 6312 } } // namespace v8::internal
6313 6313
6314 #endif // V8_TARGET_ARCH_IA32 6314 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.h ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698