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

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

Issue 20458: Revert eval changes since there is a crash that I don't have the time... (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 | « src/codegen-arm.h ('k') | src/contexts.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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // The following are used by class Reference. 260 // The following are used by class Reference.
261 void LoadReference(Reference* ref); 261 void LoadReference(Reference* ref);
262 void UnloadReference(Reference* ref); 262 void UnloadReference(Reference* ref);
263 263
264 Operand ContextOperand(Register context, int index) const { 264 Operand ContextOperand(Register context, int index) const {
265 return Operand(context, Context::SlotOffset(index)); 265 return Operand(context, Context::SlotOffset(index));
266 } 266 }
267 267
268 Operand SlotOperand(Slot* slot, Register tmp); 268 Operand SlotOperand(Slot* slot, Register tmp);
269 269
270 Operand ContextSlotOperandCheckExtensions(Slot* slot,
271 Register tmp,
272 Label* slow);
273 270
274 // Expressions 271 // Expressions
275 Operand GlobalObject() const { 272 Operand GlobalObject() const {
276 return ContextOperand(esi, Context::GLOBAL_INDEX); 273 return ContextOperand(esi, Context::GLOBAL_INDEX);
277 } 274 }
278 275
279 void LoadCondition(Expression* x, 276 void LoadCondition(Expression* x,
280 TypeofState typeof_state, 277 TypeofState typeof_state,
281 Label* true_target, 278 Label* true_target,
282 Label* false_target, 279 Label* false_target,
283 bool force_cc); 280 bool force_cc);
284 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); 281 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF);
285 void LoadGlobal(); 282 void LoadGlobal();
286 void LoadGlobalReceiver(Register scratch); 283 void LoadGlobalReceiver(Register scratch);
287 284
288 // Read a value from a slot and leave it on top of the expression stack. 285 // Read a value from a slot and leave it on top of the expression stack.
289 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 286 void LoadFromSlot(Slot* slot, TypeofState typeof_state);
290 void LoadFromGlobalSlotCheckExtensions(Slot* slot,
291 TypeofState typeof_state,
292 Register tmp,
293 Label* slow);
294 287
295 // Special code for typeof expressions: Unfortunately, we must 288 // Special code for typeof expressions: Unfortunately, we must
296 // be careful when loading the expression in 'typeof' 289 // be careful when loading the expression in 'typeof'
297 // expressions. We are not allowed to throw reference errors for 290 // expressions. We are not allowed to throw reference errors for
298 // non-existing properties of the global object, so we must make it 291 // non-existing properties of the global object, so we must make it
299 // look like an explicit property access, instead of an access 292 // look like an explicit property access, instead of an access
300 // through the context chain. 293 // through the context chain.
301 void LoadTypeofExpression(Expression* x); 294 void LoadTypeofExpression(Expression* x);
302 295
303 void ToBoolean(Label* true_target, Label* false_target); 296 void ToBoolean(Label* true_target, Label* false_target);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 friend class VirtualFrame; 434 friend class VirtualFrame;
442 friend class Reference; 435 friend class Reference;
443 436
444 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 437 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
445 }; 438 };
446 439
447 440
448 } } // namespace v8::internal 441 } } // namespace v8::internal
449 442
450 #endif // V8_CODEGEN_IA32_H_ 443 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen-arm.h ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698