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

Side by Side Diff: src/codegen-ia32.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/codegen-arm.cc ('k') | src/codegen-ia32.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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // The following are used by class Reference. 388 // The following are used by class Reference.
389 void LoadReference(Reference* ref); 389 void LoadReference(Reference* ref);
390 void UnloadReference(Reference* ref); 390 void UnloadReference(Reference* ref);
391 391
392 Operand ContextOperand(Register context, int index) const { 392 Operand ContextOperand(Register context, int index) const {
393 return Operand(context, Context::SlotOffset(index)); 393 return Operand(context, Context::SlotOffset(index));
394 } 394 }
395 395
396 Operand SlotOperand(Slot* slot, Register tmp); 396 Operand SlotOperand(Slot* slot, Register tmp);
397 397
398 Operand ContextSlotOperandCheckExtensions(Slot* slot,
399 Result tmp,
400 JumpTarget* slow);
398 401
399 // Expressions 402 // Expressions
400 Operand GlobalObject() const { 403 Operand GlobalObject() const {
401 return ContextOperand(esi, Context::GLOBAL_INDEX); 404 return ContextOperand(esi, Context::GLOBAL_INDEX);
402 } 405 }
403 406
404 void LoadCondition(Expression* x, 407 void LoadCondition(Expression* x,
405 TypeofState typeof_state, 408 TypeofState typeof_state,
406 ControlDestination* destination, 409 ControlDestination* destination,
407 bool force_control); 410 bool force_control);
(...skipping 24 matching lines...) Expand all
432 set_in_spilled_code(false); 435 set_in_spilled_code(false);
433 LoadCondition(expression, typeof_state, destination, force_control); 436 LoadCondition(expression, typeof_state, destination, force_control);
434 if (frame_ != NULL) { 437 if (frame_ != NULL) {
435 frame_->SpillAll(); 438 frame_->SpillAll();
436 } 439 }
437 set_in_spilled_code(true); 440 set_in_spilled_code(true);
438 } 441 }
439 442
440 // Read a value from a slot and leave it on top of the expression stack. 443 // Read a value from a slot and leave it on top of the expression stack.
441 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 444 void LoadFromSlot(Slot* slot, TypeofState typeof_state);
445 Result LoadFromGlobalSlotCheckExtensions(Slot* slot,
446 TypeofState typeof_state,
447 JumpTarget* slow);
442 448
443 // Store the value on top of the expression stack into a slot, leaving the 449 // Store the value on top of the expression stack into a slot, leaving the
444 // value in place. 450 // value in place.
445 void StoreToSlot(Slot* slot, InitState init_state); 451 void StoreToSlot(Slot* slot, InitState init_state);
446 452
447 // Special code for typeof expressions: Unfortunately, we must 453 // Special code for typeof expressions: Unfortunately, we must
448 // be careful when loading the expression in 'typeof' 454 // be careful when loading the expression in 'typeof'
449 // expressions. We are not allowed to throw reference errors for 455 // expressions. We are not allowed to throw reference errors for
450 // non-existing properties of the global object, so we must make it 456 // non-existing properties of the global object, so we must make it
451 // look like an explicit property access, instead of an access 457 // look like an explicit property access, instead of an access
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 cgen_->set_in_spilled_code(false); 637 cgen_->set_in_spilled_code(false);
632 GetValue(typeof_state); 638 GetValue(typeof_state);
633 cgen_->frame()->SpillAll(); 639 cgen_->frame()->SpillAll();
634 cgen_->set_in_spilled_code(true); 640 cgen_->set_in_spilled_code(true);
635 } 641 }
636 642
637 643
638 } } // namespace v8::internal 644 } } // namespace v8::internal
639 645
640 #endif // V8_CODEGEN_IA32_H_ 646 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen-arm.cc ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698