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

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

Issue 606015: Change interface to CodeGenerator::LoadFromSlot. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 void Load(Expression* expr); 422 void Load(Expression* expr);
423 void LoadGlobal(); 423 void LoadGlobal();
424 void LoadGlobalReceiver(); 424 void LoadGlobalReceiver();
425 425
426 // Generate code to push the value of an expression on top of the frame 426 // Generate code to push the value of an expression on top of the frame
427 // and then spill the frame fully to memory. This function is used 427 // and then spill the frame fully to memory. This function is used
428 // temporarily while the code generator is being transformed. 428 // temporarily while the code generator is being transformed.
429 void LoadAndSpill(Expression* expression); 429 void LoadAndSpill(Expression* expression);
430 430
431 // Read a value from a slot and leave it on top of the expression stack. 431 // Read a value from a slot and leave it on top of the expression stack.
432 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 432 Result LoadFromSlot(Slot* slot, TypeofState typeof_state);
433 void LoadFromSlotCheckForArguments(Slot* slot, TypeofState typeof_state); 433 Result LoadFromSlotCheckForArguments(Slot* slot, TypeofState typeof_state);
434 Result LoadFromGlobalSlotCheckExtensions(Slot* slot, 434 Result LoadFromGlobalSlotCheckExtensions(Slot* slot,
435 TypeofState typeof_state, 435 TypeofState typeof_state,
436 JumpTarget* slow); 436 JumpTarget* slow);
437 437
438 // Store the value on top of the expression stack into a slot, leaving the 438 // Store the value on top of the expression stack into a slot, leaving the
439 // value in place. 439 // value in place.
440 void StoreToSlot(Slot* slot, InitState init_state); 440 void StoreToSlot(Slot* slot, InitState init_state);
441 441
442 // Load a property of an object, returning it in a Result. 442 // Load a property of an object, returning it in a Result.
443 // The object and the property name are passed on the stack, and 443 // The object and the property name are passed on the stack, and
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 Major MajorKey() { return StringCompare; } 824 Major MajorKey() { return StringCompare; }
825 int MinorKey() { return 0; } 825 int MinorKey() { return 0; }
826 826
827 void Generate(MacroAssembler* masm); 827 void Generate(MacroAssembler* masm);
828 }; 828 };
829 829
830 830
831 } } // namespace v8::internal 831 } } // namespace v8::internal
832 832
833 #endif // V8_IA32_CODEGEN_IA32_H_ 833 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698