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

Side by Side Diff: src/codegen-arm.h

Issue 20499: Experimental: merge from bleeding edge 1298:1307. Port the eval... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 10 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/bytecodes-irregexp.h ('k') | src/codegen-arm.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // The following are used by class Reference. 246 // The following are used by class Reference.
247 void LoadReference(Reference* ref); 247 void LoadReference(Reference* ref);
248 void UnloadReference(Reference* ref); 248 void UnloadReference(Reference* ref);
249 249
250 MemOperand ContextOperand(Register context, int index) const { 250 MemOperand ContextOperand(Register context, int index) const {
251 return MemOperand(context, Context::SlotOffset(index)); 251 return MemOperand(context, Context::SlotOffset(index));
252 } 252 }
253 253
254 MemOperand SlotOperand(Slot* slot, Register tmp); 254 MemOperand SlotOperand(Slot* slot, Register tmp);
255 255
256 MemOperand ContextSlotOperandCheckExtensions(Slot* slot,
257 Register tmp,
258 Register tmp2,
259 JumpTarget* slow);
260
256 // Expressions 261 // Expressions
257 MemOperand GlobalObject() const { 262 MemOperand GlobalObject() const {
258 return ContextOperand(cp, Context::GLOBAL_INDEX); 263 return ContextOperand(cp, Context::GLOBAL_INDEX);
259 } 264 }
260 265
261 void LoadCondition(Expression* x, 266 void LoadCondition(Expression* x,
262 TypeofState typeof_state, 267 TypeofState typeof_state,
263 JumpTarget* true_target, 268 JumpTarget* true_target,
264 JumpTarget* false_target, 269 JumpTarget* false_target,
265 bool force_cc); 270 bool force_cc);
(...skipping 26 matching lines...) Expand all
292 LoadCondition(expression, typeof_state, true_target, false_target, 297 LoadCondition(expression, typeof_state, true_target, false_target,
293 force_control); 298 force_control);
294 if (frame_ != NULL) { 299 if (frame_ != NULL) {
295 frame_->SpillAll(); 300 frame_->SpillAll();
296 } 301 }
297 set_in_spilled_code(true); 302 set_in_spilled_code(true);
298 } 303 }
299 304
300 // Read a value from a slot and leave it on top of the expression stack. 305 // Read a value from a slot and leave it on top of the expression stack.
301 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 306 void LoadFromSlot(Slot* slot, TypeofState typeof_state);
307 void LoadFromGlobalSlotCheckExtensions(Slot* slot,
308 TypeofState typeof_state,
309 Register tmp,
310 Register tmp2,
311 JumpTarget* slow);
302 312
303 // Special code for typeof expressions: Unfortunately, we must 313 // Special code for typeof expressions: Unfortunately, we must
304 // be careful when loading the expression in 'typeof' 314 // be careful when loading the expression in 'typeof'
305 // expressions. We are not allowed to throw reference errors for 315 // expressions. We are not allowed to throw reference errors for
306 // non-existing properties of the global object, so we must make it 316 // non-existing properties of the global object, so we must make it
307 // look like an explicit property access, instead of an access 317 // look like an explicit property access, instead of an access
308 // through the context chain. 318 // through the context chain.
309 void LoadTypeofExpression(Expression* x); 319 void LoadTypeofExpression(Expression* x);
310 320
311 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); 321 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 cgen_->set_in_spilled_code(false); 480 cgen_->set_in_spilled_code(false);
471 GetValue(typeof_state); 481 GetValue(typeof_state);
472 cgen_->frame()->SpillAll(); 482 cgen_->frame()->SpillAll();
473 cgen_->set_in_spilled_code(true); 483 cgen_->set_in_spilled_code(true);
474 } 484 }
475 485
476 486
477 } } // namespace v8::internal 487 } } // namespace v8::internal
478 488
479 #endif // V8_CODEGEN_ARM_H_ 489 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/bytecodes-irregexp.h ('k') | src/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698