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

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

Issue 3028015: Add EmitKeyedStore and EmitKeyedPropertyAssignment to x64. Removal of Refere... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 5 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/x64/codegen-x64.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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 JumpTarget* slow, 450 JumpTarget* slow,
451 JumpTarget* done); 451 JumpTarget* done);
452 452
453 // Store the value on top of the expression stack into a slot, leaving the 453 // Store the value on top of the expression stack into a slot, leaving the
454 // value in place. 454 // value in place.
455 void StoreToSlot(Slot* slot, InitState init_state); 455 void StoreToSlot(Slot* slot, InitState init_state);
456 456
457 // Support for compiling assignment expressions. 457 // Support for compiling assignment expressions.
458 void EmitSlotAssignment(Assignment* node); 458 void EmitSlotAssignment(Assignment* node);
459 void EmitNamedPropertyAssignment(Assignment* node); 459 void EmitNamedPropertyAssignment(Assignment* node);
460 void EmitKeyedPropertyAssignment(Assignment* node);
460 461
461 // Receiver is passed on the frame and not consumed. 462 // Receiver is passed on the frame and not consumed.
462 Result EmitNamedLoad(Handle<String> name, bool is_contextual); 463 Result EmitNamedLoad(Handle<String> name, bool is_contextual);
463 464
464 // If the store is contextual, value is passed on the frame and consumed. 465 // If the store is contextual, value is passed on the frame and consumed.
465 // Otherwise, receiver and value are passed on the frame and consumed. 466 // Otherwise, receiver and value are passed on the frame and consumed.
466 Result EmitNamedStore(Handle<String> name, bool is_contextual); 467 Result EmitNamedStore(Handle<String> name, bool is_contextual);
467 468
468 // Load a property of an object, returning it in a Result. 469 // Load a property of an object, returning it in a Result.
469 // The object and the property name are passed on the stack, and 470 // The object and the property name are passed on the stack, and
470 // not changed. 471 // not changed.
471 Result EmitKeyedLoad(); 472 Result EmitKeyedLoad();
472 473
474 // Receiver, key, and value are passed on the frame and consumed.
475 Result EmitKeyedStore(StaticType* key_type);
476
473 // Special code for typeof expressions: Unfortunately, we must 477 // Special code for typeof expressions: Unfortunately, we must
474 // be careful when loading the expression in 'typeof' 478 // be careful when loading the expression in 'typeof'
475 // expressions. We are not allowed to throw reference errors for 479 // expressions. We are not allowed to throw reference errors for
476 // non-existing properties of the global object, so we must make it 480 // non-existing properties of the global object, so we must make it
477 // look like an explicit property access, instead of an access 481 // look like an explicit property access, instead of an access
478 // through the context chain. 482 // through the context chain.
479 void LoadTypeofExpression(Expression* x); 483 void LoadTypeofExpression(Expression* x);
480 484
481 // Translate the value on top of the frame into control flow to the 485 // Translate the value on top of the frame into control flow to the
482 // control destination. 486 // control destination.
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 return ObjectBits::encode(object_.code()) | 1074 return ObjectBits::encode(object_.code()) |
1071 AddressBits::encode(addr_.code()) | 1075 AddressBits::encode(addr_.code()) |
1072 ScratchBits::encode(scratch_.code()); 1076 ScratchBits::encode(scratch_.code());
1073 } 1077 }
1074 }; 1078 };
1075 1079
1076 1080
1077 } } // namespace v8::internal 1081 } } // namespace v8::internal
1078 1082
1079 #endif // V8_X64_CODEGEN_X64_H_ 1083 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698