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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 546006: Some cleanup of the toplevel code generator:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 157
158 void MacroAssembler::StackLimitCheck(Label* on_stack_overflow) { 158 void MacroAssembler::StackLimitCheck(Label* on_stack_overflow) {
159 LoadRoot(ip, Heap::kStackLimitRootIndex); 159 LoadRoot(ip, Heap::kStackLimitRootIndex);
160 cmp(sp, Operand(ip)); 160 cmp(sp, Operand(ip));
161 b(lo, on_stack_overflow); 161 b(lo, on_stack_overflow);
162 } 162 }
163 163
164 164
165 void MacroAssembler::Drop(int stack_elements, Condition cond) { 165 void MacroAssembler::Drop(int count, Condition cond) {
166 if (stack_elements > 0) { 166 if (count > 0) {
167 add(sp, sp, Operand(stack_elements * kPointerSize), LeaveCC, cond); 167 add(sp, sp, Operand(count * kPointerSize), LeaveCC, cond);
168 } 168 }
169 } 169 }
170 170
171 171
172 void MacroAssembler::Call(Label* target) { 172 void MacroAssembler::Call(Label* target) {
173 bl(target); 173 bl(target);
174 } 174 }
175 175
176 176
177 void MacroAssembler::Move(Register dst, Handle<Object> value) { 177 void MacroAssembler::Move(Register dst, Handle<Object> value) {
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 } 1250 }
1251 1251
1252 1252
1253 void CodePatcher::Emit(Address addr) { 1253 void CodePatcher::Emit(Address addr) {
1254 masm()->emit(reinterpret_cast<Instr>(addr)); 1254 masm()->emit(reinterpret_cast<Instr>(addr));
1255 } 1255 }
1256 #endif // ENABLE_DEBUGGER_SUPPORT 1256 #endif // ENABLE_DEBUGGER_SUPPORT
1257 1257
1258 1258
1259 } } // namespace v8::internal 1259 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698