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

Side by Side Diff: src/arm/cfg-arm.cc

Issue 159698: Enable --trace when --multipass is on. Bugfix in bailout condition.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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 | « no previous file | src/cfg.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 { 55 {
56 Comment cmnt(masm, "[ EntryNode"); 56 Comment cmnt(masm, "[ EntryNode");
57 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); 57 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
58 __ add(fp, sp, Operand(2 * kPointerSize)); 58 __ add(fp, sp, Operand(2 * kPointerSize));
59 if (local_count_ > 0) { 59 if (local_count_ > 0) {
60 __ mov(ip, Operand(Factory::undefined_value())); 60 __ mov(ip, Operand(Factory::undefined_value()));
61 for (int i = 0; i < local_count_; i++) { 61 for (int i = 0; i < local_count_; i++) {
62 __ push(ip); 62 __ push(ip);
63 } 63 }
64 } 64 }
65 if (FLAG_trace) {
66 __ CallRuntime(Runtime::kTraceEnter, 0);
67 }
65 if (FLAG_check_stack) { 68 if (FLAG_check_stack) {
66 StackCheckStub stub; 69 StackCheckStub stub;
67 __ CallStub(&stub); 70 __ CallStub(&stub);
68 } 71 }
69 } 72 }
70 successor_->Compile(masm); 73 successor_->Compile(masm);
71 } 74 }
72 75
73 76
74 void ExitNode::Compile(MacroAssembler* masm) { 77 void ExitNode::Compile(MacroAssembler* masm) {
75 ASSERT(!is_marked()); 78 ASSERT(!is_marked());
76 is_marked_ = true; 79 is_marked_ = true;
77 Comment cmnt(masm, "[ ExitNode"); 80 Comment cmnt(masm, "[ ExitNode");
81 if (FLAG_trace) {
82 __ push(r0);
83 __ CallRuntime(Runtime::kTraceExit, 1);
84 }
78 __ mov(sp, fp); 85 __ mov(sp, fp);
79 __ ldm(ia_w, sp, fp.bit() | lr.bit()); 86 __ ldm(ia_w, sp, fp.bit() | lr.bit());
80 __ add(sp, sp, Operand((parameter_count_ + 1) * kPointerSize)); 87 __ add(sp, sp, Operand((parameter_count_ + 1) * kPointerSize));
81 __ Jump(lr); 88 __ Jump(lr);
82 } 89 }
83 90
84 91
85 void ReturnInstr::Compile(MacroAssembler* masm) { 92 void ReturnInstr::Compile(MacroAssembler* masm) {
86 Comment cmnt(masm, "[ ReturnInstr"); 93 Comment cmnt(masm, "[ ReturnInstr");
87 value_->ToRegister(masm, r0); 94 value_->ToRegister(masm, r0);
88 } 95 }
89 96
90 97
91 void Constant::ToRegister(MacroAssembler* masm, Register reg) { 98 void Constant::ToRegister(MacroAssembler* masm, Register reg) {
92 __ mov(reg, Operand(handle_)); 99 __ mov(reg, Operand(handle_));
93 } 100 }
94 101
95 #undef __ 102 #undef __
96 103
97 } } // namespace v8::internal 104 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/cfg.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698