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

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

Issue 108015: Restore stack backtrace tests removed in revision 1785. (Closed)
Patch Set: Addressed Kevin's comments Created 11 years, 7 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
« no previous file with comments | « src/ia32/codegen-ia32.h ('k') | test/cctest/test-log-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4537 Result left = frame_->Pop(); 4537 Result left = frame_->Pop();
4538 right.ToRegister(); 4538 right.ToRegister();
4539 left.ToRegister(); 4539 left.ToRegister();
4540 __ cmp(right.reg(), Operand(left.reg())); 4540 __ cmp(right.reg(), Operand(left.reg()));
4541 right.Unuse(); 4541 right.Unuse();
4542 left.Unuse(); 4542 left.Unuse();
4543 destination()->Split(equal); 4543 destination()->Split(equal);
4544 } 4544 }
4545 4545
4546 4546
4547 void CodeGenerator::GenerateGetFramePointer(ZoneList<Expression*>* args) {
4548 ASSERT(args->length() == 0);
4549 ASSERT(kSmiTagSize == 1 && kSmiTag == 0); // shifting code depends on this
4550 Result ebp_as_smi = allocator_->Allocate();
4551 ASSERT(ebp_as_smi.is_valid());
4552 __ mov(ebp_as_smi.reg(), Operand(ebp));
4553 __ shr(ebp_as_smi.reg(), kSmiTagSize);
4554 frame_->Push(&ebp_as_smi);
4555 }
4556
4557
4547 void CodeGenerator::VisitCallRuntime(CallRuntime* node) { 4558 void CodeGenerator::VisitCallRuntime(CallRuntime* node) {
4548 if (CheckForInlineRuntimeCall(node)) { 4559 if (CheckForInlineRuntimeCall(node)) {
4549 return; 4560 return;
4550 } 4561 }
4551 4562
4552 ZoneList<Expression*>* args = node->arguments(); 4563 ZoneList<Expression*>* args = node->arguments();
4553 Comment cmnt(masm_, "[ CallRuntime"); 4564 Comment cmnt(masm_, "[ CallRuntime");
4554 Runtime::Function* function = node->function(); 4565 Runtime::Function* function = node->function();
4555 4566
4556 if (function == NULL) { 4567 if (function == NULL) {
(...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after
7218 7229
7219 // Slow-case: Go through the JavaScript implementation. 7230 // Slow-case: Go through the JavaScript implementation.
7220 __ bind(&slow); 7231 __ bind(&slow);
7221 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); 7232 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
7222 } 7233 }
7223 7234
7224 7235
7225 #undef __ 7236 #undef __
7226 7237
7227 } } // namespace v8::internal 7238 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.h ('k') | test/cctest/test-log-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698