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

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

Issue 20459: Not sure what happened, but my revert did not get everything out. Fixing the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « no previous file | src/codegen-ia32.h » ('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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // The following are used by class Reference. 249 // The following are used by class Reference.
250 void LoadReference(Reference* ref); 250 void LoadReference(Reference* ref);
251 void UnloadReference(Reference* ref); 251 void UnloadReference(Reference* ref);
252 252
253 MemOperand ContextOperand(Register context, int index) const { 253 MemOperand ContextOperand(Register context, int index) const {
254 return MemOperand(context, Context::SlotOffset(index)); 254 return MemOperand(context, Context::SlotOffset(index));
255 } 255 }
256 256
257 MemOperand SlotOperand(Slot* slot, Register tmp); 257 MemOperand SlotOperand(Slot* slot, Register tmp);
258 258
259 MemOperand ContextSlotOperandCheckExtensions(Slot* slot,
260 Register tmp,
261 Register tmp2,
262 Label* slow);
263
259 // Expressions 264 // Expressions
260 MemOperand GlobalObject() const { 265 MemOperand GlobalObject() const {
261 return ContextOperand(cp, Context::GLOBAL_INDEX); 266 return ContextOperand(cp, Context::GLOBAL_INDEX);
262 } 267 }
263 268
264 void LoadCondition(Expression* x, 269 void LoadCondition(Expression* x,
265 TypeofState typeof_state, 270 TypeofState typeof_state,
266 Label* true_target, 271 Label* true_target,
267 Label* false_target, 272 Label* false_target,
268 bool force_cc); 273 bool force_cc);
269 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); 274 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF);
270 void LoadGlobal(); 275 void LoadGlobal();
271 void LoadGlobalReceiver(Register scratch); 276 void LoadGlobalReceiver(Register scratch);
272 277
273 // Read a value from a slot and leave it on top of the expression stack. 278 // Read a value from a slot and leave it on top of the expression stack.
274 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 279 void LoadFromSlot(Slot* slot, TypeofState typeof_state);
280 void LoadFromGlobalSlotCheckExtensions(Slot* slot,
281 TypeofState typeof_state,
282 Register tmp,
283 Register tmp2,
284 Label* slow);
275 285
276 // Special code for typeof expressions: Unfortunately, we must 286 // Special code for typeof expressions: Unfortunately, we must
277 // be careful when loading the expression in 'typeof' 287 // be careful when loading the expression in 'typeof'
278 // expressions. We are not allowed to throw reference errors for 288 // expressions. We are not allowed to throw reference errors for
279 // non-existing properties of the global object, so we must make it 289 // non-existing properties of the global object, so we must make it
280 // look like an explicit property access, instead of an access 290 // look like an explicit property access, instead of an access
281 // through the context chain. 291 // through the context chain.
282 void LoadTypeofExpression(Expression* x); 292 void LoadTypeofExpression(Expression* x);
283 293
284 void ToBoolean(Label* true_target, Label* false_target); 294 void ToBoolean(Label* true_target, Label* false_target);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 418
409 friend class VirtualFrame; 419 friend class VirtualFrame;
410 friend class Reference; 420 friend class Reference;
411 421
412 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 422 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
413 }; 423 };
414 424
415 } } // namespace v8::internal 425 } } // namespace v8::internal
416 426
417 #endif // V8_CODEGEN_ARM_H_ 427 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698