OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |