| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 Immediate(Handle<SharedFunctionInfo>(function->shared()))); | 1344 Immediate(Handle<SharedFunctionInfo>(function->shared()))); |
| 1345 __ j(not_equal, miss, not_taken); | 1345 __ j(not_equal, miss, not_taken); |
| 1346 } else { | 1346 } else { |
| 1347 __ cmp(Operand(edi), Immediate(Handle<JSFunction>(function))); | 1347 __ cmp(Operand(edi), Immediate(Handle<JSFunction>(function))); |
| 1348 __ j(not_equal, miss, not_taken); | 1348 __ j(not_equal, miss, not_taken); |
| 1349 } | 1349 } |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 | 1352 |
| 1353 MaybeObject* CallStubCompiler::GenerateMissBranch() { | 1353 MaybeObject* CallStubCompiler::GenerateMissBranch() { |
| 1354 MaybeObject* maybe_obj = | 1354 MaybeObject* maybe_obj = |
| 1355 Isolate::Current()->stub_cache()->ComputeCallMiss( | 1355 Isolate::Current()->stub_cache()->ComputeCallMiss( |
| 1356 arguments().immediate(), kind_); | 1356 arguments().immediate(), kind_); |
| 1357 Object* obj; | 1357 Object* obj; |
| 1358 if (!maybe_obj->ToObject(&obj)) return maybe_obj; | 1358 if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
| 1359 __ jmp(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); | 1359 __ jmp(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); |
| 1360 return obj; | 1360 return obj; |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 | 1363 |
| 1364 MUST_USE_RESULT MaybeObject* CallStubCompiler::CompileCallField( | 1364 MUST_USE_RESULT MaybeObject* CallStubCompiler::CompileCallField( |
| (...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3651 | 3651 |
| 3652 return GetCode(flags); | 3652 return GetCode(flags); |
| 3653 } | 3653 } |
| 3654 | 3654 |
| 3655 | 3655 |
| 3656 #undef __ | 3656 #undef __ |
| 3657 | 3657 |
| 3658 } } // namespace v8::internal | 3658 } } // namespace v8::internal |
| 3659 | 3659 |
| 3660 #endif // V8_TARGET_ARCH_IA32 | 3660 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |