| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 __ shl(eax, kSmiTagSize); | 225 __ shl(eax, kSmiTagSize); |
| 226 __ ret(0); | 226 __ ret(0); |
| 227 } | 227 } |
| 228 | 228 |
| 229 | 229 |
| 230 void StubCompiler::GenerateLoadFunctionPrototype(MacroAssembler* masm, | 230 void StubCompiler::GenerateLoadFunctionPrototype(MacroAssembler* masm, |
| 231 Register receiver, | 231 Register receiver, |
| 232 Register scratch1, | 232 Register scratch1, |
| 233 Register scratch2, | 233 Register scratch2, |
| 234 Label* miss_label) { | 234 Label* miss_label) { |
| 235 | |
| 236 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label); | 235 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label); |
| 237 __ mov(eax, Operand(scratch1)); | 236 __ mov(eax, Operand(scratch1)); |
| 238 __ ret(0); | 237 __ ret(0); |
| 239 } | 238 } |
| 240 | 239 |
| 241 | 240 |
| 242 void StubCompiler::GenerateLoadField(MacroAssembler* masm, | 241 void StubCompiler::GenerateLoadField(MacroAssembler* masm, |
| 243 JSObject* object, | 242 JSObject* object, |
| 244 JSObject* holder, | 243 JSObject* holder, |
| 245 Register receiver, | 244 Register receiver, |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 1211 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
| 1213 | 1212 |
| 1214 // Return the generated code. | 1213 // Return the generated code. |
| 1215 return GetCode(CALLBACKS); | 1214 return GetCode(CALLBACKS); |
| 1216 } | 1215 } |
| 1217 | 1216 |
| 1218 | 1217 |
| 1219 #undef __ | 1218 #undef __ |
| 1220 | 1219 |
| 1221 } } // namespace v8::internal | 1220 } } // namespace v8::internal |
| OLD | NEW |