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

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

Issue 1846002: Refactor assignment in the ARM code generator... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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/arm/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 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 JumpTarget* true_target, 305 JumpTarget* true_target,
306 JumpTarget* false_target, 306 JumpTarget* false_target,
307 bool force_control); 307 bool force_control);
308 308
309 // Read a value from a slot and leave it on top of the expression stack. 309 // Read a value from a slot and leave it on top of the expression stack.
310 void LoadFromSlot(Slot* slot, TypeofState typeof_state); 310 void LoadFromSlot(Slot* slot, TypeofState typeof_state);
311 void LoadFromSlotCheckForArguments(Slot* slot, TypeofState state); 311 void LoadFromSlotCheckForArguments(Slot* slot, TypeofState state);
312 // Store the value on top of the stack to a slot. 312 // Store the value on top of the stack to a slot.
313 void StoreToSlot(Slot* slot, InitState init_state); 313 void StoreToSlot(Slot* slot, InitState init_state);
314 314
315 // Load a named property, leaving it in r0. The receiver is passed on the 315 // Support for compiling assignment expressions.
316 void EmitSlotAssignment(Assignment* node);
317 void EmitNamedPropertyAssignment(Assignment* node);
318 void EmitKeyedPropertyAssignment(Assignment* node);
319
320 // Load a named property, returning it in r0. The receiver is passed on the
316 // stack, and remains there. 321 // stack, and remains there.
317 void EmitNamedLoad(Handle<String> name, bool is_contextual); 322 void EmitNamedLoad(Handle<String> name, bool is_contextual);
318 323
324 // Store to a named property. If the store is contextual, value is passed on
325 // the frame and consumed. Otherwise, receiver and value are passed on the
326 // frame and consumed. The result is returned in r0.
327 void EmitNamedStore(Handle<String> name, bool is_contextual);
328
319 // Load a keyed property, leaving it in r0. The receiver and key are 329 // Load a keyed property, leaving it in r0. The receiver and key are
320 // passed on the stack, and remain there. 330 // passed on the stack, and remain there.
321 void EmitKeyedLoad(); 331 void EmitKeyedLoad();
322 332
323 // Store a keyed property. Key and receiver are on the stack and the value is 333 // Store a keyed property. Key and receiver are on the stack and the value is
324 // in r0. Result is returned in r0. 334 // in r0. Result is returned in r0.
325 void EmitKeyedStore(StaticType* key_type); 335 void EmitKeyedStore(StaticType* key_type);
326 336
327 void LoadFromGlobalSlotCheckExtensions(Slot* slot, 337 void LoadFromGlobalSlotCheckExtensions(Slot* slot,
328 TypeofState typeof_state, 338 TypeofState typeof_state,
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 void Print() { 865 void Print() {
856 PrintF("NumberToStringStub\n"); 866 PrintF("NumberToStringStub\n");
857 } 867 }
858 #endif 868 #endif
859 }; 869 };
860 870
861 871
862 } } // namespace v8::internal 872 } } // namespace v8::internal
863 873
864 #endif // V8_ARM_CODEGEN_ARM_H_ 874 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698