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

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

Issue 2121022: Refactor x64 named loads to agree with ia32 implementation. Remove dead code... (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 | « src/ia32/codegen-ia32.cc ('k') | 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void EmitDynamicLoadFromSlotFastCase(Slot* slot, 442 void EmitDynamicLoadFromSlotFastCase(Slot* slot,
443 TypeofState typeof_state, 443 TypeofState typeof_state,
444 Result* result, 444 Result* result,
445 JumpTarget* slow, 445 JumpTarget* slow,
446 JumpTarget* done); 446 JumpTarget* done);
447 447
448 // Store the value on top of the expression stack into a slot, leaving the 448 // Store the value on top of the expression stack into a slot, leaving the
449 // value in place. 449 // value in place.
450 void StoreToSlot(Slot* slot, InitState init_state); 450 void StoreToSlot(Slot* slot, InitState init_state);
451 451
452 // Receiver is passed on the frame and not consumed.
453 Result EmitNamedLoad(Handle<String> name, bool is_contextual);
454
452 // Load a property of an object, returning it in a Result. 455 // Load a property of an object, returning it in a Result.
453 // The object and the property name are passed on the stack, and 456 // The object and the property name are passed on the stack, and
454 // not changed. 457 // not changed.
455 Result EmitKeyedLoad(bool is_global); 458 Result EmitKeyedLoad();
456 459
457 // Special code for typeof expressions: Unfortunately, we must 460 // Special code for typeof expressions: Unfortunately, we must
458 // be careful when loading the expression in 'typeof' 461 // be careful when loading the expression in 'typeof'
459 // expressions. We are not allowed to throw reference errors for 462 // expressions. We are not allowed to throw reference errors for
460 // non-existing properties of the global object, so we must make it 463 // non-existing properties of the global object, so we must make it
461 // look like an explicit property access, instead of an access 464 // look like an explicit property access, instead of an access
462 // through the context chain. 465 // through the context chain.
463 void LoadTypeofExpression(Expression* x); 466 void LoadTypeofExpression(Expression* x);
464 467
465 // Translate the value on top of the frame into control flow to the 468 // Translate the value on top of the frame into control flow to the
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 return ObjectBits::encode(object_.code()) | 1056 return ObjectBits::encode(object_.code()) |
1054 AddressBits::encode(addr_.code()) | 1057 AddressBits::encode(addr_.code()) |
1055 ScratchBits::encode(scratch_.code()); 1058 ScratchBits::encode(scratch_.code());
1056 } 1059 }
1057 }; 1060 };
1058 1061
1059 1062
1060 } } // namespace v8::internal 1063 } } // namespace v8::internal
1061 1064
1062 #endif // V8_X64_CODEGEN_X64_H_ 1065 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698