 Chromium Code Reviews
 Chromium Code Reviews Issue 6542011:
  X64 Crankshaft: Implement LValueOf and (dummy) LArgumentsObject.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 6542011:
  X64 Crankshaft: Implement LValueOf and (dummy) LArgumentsObject.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1967 | 1967 | 
| 1968 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 1968 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 
| 1969 LOperand* context = UseFixed(instr->context(), esi); | 1969 LOperand* context = UseFixed(instr->context(), esi); | 
| 1970 argument_count_ -= instr->argument_count(); | 1970 argument_count_ -= instr->argument_count(); | 
| 1971 LCallStub* result = new LCallStub(context); | 1971 LCallStub* result = new LCallStub(context); | 
| 1972 return MarkAsCall(DefineFixed(result, eax), instr); | 1972 return MarkAsCall(DefineFixed(result, eax), instr); | 
| 1973 } | 1973 } | 
| 1974 | 1974 | 
| 1975 | 1975 | 
| 1976 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 1976 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 
| 1977 // There are no real uses of the arguments object (we bail out in all other | 1977 // There are no real uses of the arguments object. | 
| 1978 // cases). | 1978 // arguments.length and element access are supported directly on | 
| 1979 // stack arguments, and any real arguments object use causes a bailout. | |
| 1980 // So this value is never used. | |
| 1979 return NULL; | 1981 return NULL; | 
| 
Lasse Reichstein
2011/02/18 11:50:55
What is the "value" that is never used?
Is this fu
 
William Hesse
2011/02/18 12:06:21
A HValue, HArgumentsObject is created to represent
 | |
| 1980 } | 1982 } | 
| 1981 | 1983 | 
| 1982 | 1984 | 
| 1983 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 1985 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 
| 1984 LOperand* arguments = UseRegister(instr->arguments()); | 1986 LOperand* arguments = UseRegister(instr->arguments()); | 
| 1985 LOperand* length = UseTempRegister(instr->length()); | 1987 LOperand* length = UseTempRegister(instr->length()); | 
| 1986 LOperand* index = Use(instr->index()); | 1988 LOperand* index = Use(instr->index()); | 
| 1987 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 1989 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 
| 1988 return AssignEnvironment(DefineAsRegister(result)); | 1990 return AssignEnvironment(DefineAsRegister(result)); | 
| 1989 } | 1991 } | 
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2059 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2061 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 
| 2060 HEnvironment* outer = current_block_->last_environment()->outer(); | 2062 HEnvironment* outer = current_block_->last_environment()->outer(); | 
| 2061 current_block_->UpdateEnvironment(outer); | 2063 current_block_->UpdateEnvironment(outer); | 
| 2062 return NULL; | 2064 return NULL; | 
| 2063 } | 2065 } | 
| 2064 | 2066 | 
| 2065 | 2067 | 
| 2066 } } // namespace v8::internal | 2068 } } // namespace v8::internal | 
| 2067 | 2069 | 
| 2068 #endif // V8_TARGET_ARCH_IA32 | 2070 #endif // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |