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

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

Issue 650028: Improve stores to global variables. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/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 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 void StoreToSlot(Slot* slot, InitState init_state); 431 void StoreToSlot(Slot* slot, InitState init_state);
432 432
433 // Support for compiling assignment expressions. 433 // Support for compiling assignment expressions.
434 void EmitSlotAssignment(Assignment* node); 434 void EmitSlotAssignment(Assignment* node);
435 void EmitNamedPropertyAssignment(Assignment* node); 435 void EmitNamedPropertyAssignment(Assignment* node);
436 void EmitKeyedPropertyAssignment(Assignment* node); 436 void EmitKeyedPropertyAssignment(Assignment* node);
437 437
438 // Receiver is passed on the frame and consumed. 438 // Receiver is passed on the frame and consumed.
439 Result EmitNamedLoad(Handle<String> name, bool is_contextual); 439 Result EmitNamedLoad(Handle<String> name, bool is_contextual);
440 440
441 // Reciever and value are passed on the frame and consumed. 441 // If the store is contextual, value is passed on the frame and consumed.
442 Result EmitNamedStore(Handle<String> name); 442 // Otherwise, receiver and value are passed on the frame and consumed.
443 Result EmitNamedStore(Handle<String> name, bool is_contextual);
443 444
444 // Receiver and key are passed on the frame and consumed. 445 // Receiver and key are passed on the frame and consumed.
445 Result EmitKeyedLoad(); 446 Result EmitKeyedLoad();
446 447
447 // Receiver, key, and value are passed on the frame and consumed. 448 // Receiver, key, and value are passed on the frame and consumed.
448 Result EmitKeyedStore(StaticType* key_type); 449 Result EmitKeyedStore(StaticType* key_type);
449 450
450 // Special code for typeof expressions: Unfortunately, we must 451 // Special code for typeof expressions: Unfortunately, we must
451 // be careful when loading the expression in 'typeof' 452 // be careful when loading the expression in 'typeof'
452 // expressions. We are not allowed to throw reference errors for 453 // expressions. We are not allowed to throw reference errors for
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 void Print() { 897 void Print() {
897 PrintF("NumberToStringStub\n"); 898 PrintF("NumberToStringStub\n");
898 } 899 }
899 #endif 900 #endif
900 }; 901 };
901 902
902 903
903 } } // namespace v8::internal 904 } } // namespace v8::internal
904 905
905 #endif // V8_IA32_CODEGEN_IA32_H_ 906 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698