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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1325 __ cmp(r4, r3); | 1325 __ cmp(r4, r3); |
1326 __ b(ne, miss); | 1326 __ b(ne, miss); |
1327 } else { | 1327 } else { |
1328 __ cmp(r1, Operand(Handle<JSFunction>(function))); | 1328 __ cmp(r1, Operand(Handle<JSFunction>(function))); |
1329 __ b(ne, miss); | 1329 __ b(ne, miss); |
1330 } | 1330 } |
1331 } | 1331 } |
1332 | 1332 |
1333 | 1333 |
1334 MaybeObject* CallStubCompiler::GenerateMissBranch() { | 1334 MaybeObject* CallStubCompiler::GenerateMissBranch() { |
1335 MaybeObject* maybe_obj = StubCache::ComputeCallMiss(arguments().immediate(), | |
1336 kind_, | |
1337 extra_ic_state_); | |
Mads Ager (chromium)
2011/01/18 12:54:00
Needs updating to follow ia32.
| |
1335 Object* obj; | 1338 Object* obj; |
1336 { MaybeObject* maybe_obj = | 1339 if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
1337 StubCache::ComputeCallMiss(arguments().immediate(), kind_); | |
1338 if (!maybe_obj->ToObject(&obj)) return maybe_obj; | |
1339 } | |
1340 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); | 1340 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); |
1341 return obj; | 1341 return obj; |
1342 } | 1342 } |
1343 | 1343 |
1344 | 1344 |
1345 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object, | 1345 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object, |
1346 JSObject* holder, | 1346 JSObject* holder, |
1347 int index, | 1347 int index, |
1348 String* name) { | 1348 String* name) { |
1349 // ----------- S t a t e ------------- | 1349 // ----------- S t a t e ------------- |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3200 // Return the generated code. | 3200 // Return the generated code. |
3201 return GetCode(); | 3201 return GetCode(); |
3202 } | 3202 } |
3203 | 3203 |
3204 | 3204 |
3205 #undef __ | 3205 #undef __ |
3206 | 3206 |
3207 } } // namespace v8::internal | 3207 } } // namespace v8::internal |
3208 | 3208 |
3209 #endif // V8_TARGET_ARCH_ARM | 3209 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |