| 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 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 // necessary. | 1220 // necessary. |
| 1221 if (object->IsGlobalObject()) { | 1221 if (object->IsGlobalObject()) { |
| 1222 __ ldr(r3, FieldMemOperand(r0, GlobalObject::kGlobalReceiverOffset)); | 1222 __ ldr(r3, FieldMemOperand(r0, GlobalObject::kGlobalReceiverOffset)); |
| 1223 __ str(r3, MemOperand(sp, argc * kPointerSize)); | 1223 __ str(r3, MemOperand(sp, argc * kPointerSize)); |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 // Setup the context (function already in r1). | 1226 // Setup the context (function already in r1). |
| 1227 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); | 1227 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
| 1228 | 1228 |
| 1229 // Jump to the cached code (tail call). | 1229 // Jump to the cached code (tail call). |
| 1230 __ IncrementCounter(&Counters::call_global_inline, 1, r1, r3); | 1230 __ IncrementCounter(&Counters::call_global_inline, 1, r3, r4); |
| 1231 ASSERT(function->is_compiled()); | 1231 ASSERT(function->is_compiled()); |
| 1232 Handle<Code> code(function->code()); | 1232 Handle<Code> code(function->code()); |
| 1233 ParameterCount expected(function->shared()->formal_parameter_count()); | 1233 ParameterCount expected(function->shared()->formal_parameter_count()); |
| 1234 __ InvokeCode(code, expected, arguments(), | 1234 __ InvokeCode(code, expected, arguments(), |
| 1235 RelocInfo::CODE_TARGET, JUMP_FUNCTION); | 1235 RelocInfo::CODE_TARGET, JUMP_FUNCTION); |
| 1236 | 1236 |
| 1237 // Handle call cache miss. | 1237 // Handle call cache miss. |
| 1238 __ bind(&miss); | 1238 __ bind(&miss); |
| 1239 __ IncrementCounter(&Counters::call_global_inline_miss, 1, r1, r3); | 1239 __ IncrementCounter(&Counters::call_global_inline_miss, 1, r1, r3); |
| 1240 Handle<Code> ic = ComputeCallMiss(arguments().immediate()); | 1240 Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 1947 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 1948 | 1948 |
| 1949 // Return the generated code. | 1949 // Return the generated code. |
| 1950 return GetCode(); | 1950 return GetCode(); |
| 1951 } | 1951 } |
| 1952 | 1952 |
| 1953 | 1953 |
| 1954 #undef __ | 1954 #undef __ |
| 1955 | 1955 |
| 1956 } } // namespace v8::internal | 1956 } } // namespace v8::internal |
| OLD | NEW |