OLD | NEW |
---|---|
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1320 __ cmpq(FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset), rax); | 1320 __ cmpq(FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset), rax); |
1321 __ j(not_equal, miss); | 1321 __ j(not_equal, miss); |
1322 } else { | 1322 } else { |
1323 __ Cmp(rdi, Handle<JSFunction>(function)); | 1323 __ Cmp(rdi, Handle<JSFunction>(function)); |
1324 __ j(not_equal, miss); | 1324 __ j(not_equal, miss); |
1325 } | 1325 } |
1326 } | 1326 } |
1327 | 1327 |
1328 | 1328 |
1329 MaybeObject* CallStubCompiler::GenerateMissBranch() { | 1329 MaybeObject* CallStubCompiler::GenerateMissBranch() { |
1330 MaybeObject* maybe_obj = | 1330 MaybeObject* maybe_obj = StubCache::ComputeCallMiss(arguments().immediate(), |
1331 StubCache::ComputeCallMiss(arguments().immediate(), kind_); | 1331 kind_, |
1332 extra_ic_state_); | |
Mads Ager (chromium)
2011/01/18 12:54:00
Needs updating to follow ia32.
| |
1332 Object* obj; | 1333 Object* obj; |
1333 if (!maybe_obj->ToObject(&obj)) return maybe_obj; | 1334 if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
1334 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); | 1335 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); |
1335 return obj; | 1336 return obj; |
1336 } | 1337 } |
1337 | 1338 |
1338 | 1339 |
1339 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object, | 1340 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object, |
1340 JSObject* holder, | 1341 JSObject* holder, |
1341 int index, | 1342 int index, |
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3113 // Return the generated code. | 3114 // Return the generated code. |
3114 return GetCode(); | 3115 return GetCode(); |
3115 } | 3116 } |
3116 | 3117 |
3117 | 3118 |
3118 #undef __ | 3119 #undef __ |
3119 | 3120 |
3120 } } // namespace v8::internal | 3121 } } // namespace v8::internal |
3121 | 3122 |
3122 #endif // V8_TARGET_ARCH_X64 | 3123 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |