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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 6568004: X64 Crankshaft: Add Typeof and TypeofIs to x64 lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 1926 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
1927 LOperand* arguments = UseRegister(instr->arguments()); 1927 LOperand* arguments = UseRegister(instr->arguments());
1928 LOperand* length = UseTempRegister(instr->length()); 1928 LOperand* length = UseTempRegister(instr->length());
1929 LOperand* index = Use(instr->index()); 1929 LOperand* index = Use(instr->index());
1930 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); 1930 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index);
1931 return AssignEnvironment(DefineAsRegister(result)); 1931 return AssignEnvironment(DefineAsRegister(result));
1932 } 1932 }
1933 1933
1934 1934
1935 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 1935 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
1936 Abort("Unimplemented: %s", "DoTypeof"); 1936 LTypeof* result = new LTypeof(UseAtStart(instr->value()));
1937 return NULL; 1937 return MarkAsCall(DefineFixed(result, rax), instr);
1938 } 1938 }
1939 1939
1940 1940
1941 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 1941 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
1942 Abort("Unimplemented: %s", "DoTypeofIs"); 1942 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
1943 return NULL;
1944 } 1943 }
1945 1944
1946 1945
1947 LInstruction* LChunkBuilder::DoIsConstructCall(HIsConstructCall* instr) { 1946 LInstruction* LChunkBuilder::DoIsConstructCall(HIsConstructCall* instr) {
1948 return DefineAsRegister(new LIsConstructCall); 1947 return DefineAsRegister(new LIsConstructCall);
1949 } 1948 }
1950 1949
1951 1950
1952 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 1951 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
1953 HEnvironment* env = current_block_->last_environment(); 1952 HEnvironment* env = current_block_->last_environment();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 2000
2002 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2001 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2003 HEnvironment* outer = current_block_->last_environment()->outer(); 2002 HEnvironment* outer = current_block_->last_environment()->outer();
2004 current_block_->UpdateEnvironment(outer); 2003 current_block_->UpdateEnvironment(outer);
2005 return NULL; 2004 return NULL;
2006 } 2005 }
2007 2006
2008 } } // namespace v8::internal 2007 } } // namespace v8::internal
2009 2008
2010 #endif // V8_TARGET_ARCH_X64 2009 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698