| 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 PROFILE(isolate_, | 642 PROFILE(isolate_, |
| 643 CodeCreateEvent(Logger::KEYED_EXTERNAL_ARRAY_STORE_IC_TAG, | 643 CodeCreateEvent(Logger::KEYED_EXTERNAL_ARRAY_STORE_IC_TAG, |
| 644 Code::cast(code), 0)); | 644 Code::cast(code), 0)); |
| 645 } else { | 645 } else { |
| 646 PROFILE(isolate_, | 646 PROFILE(isolate_, |
| 647 CodeCreateEvent(Logger::KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG, | 647 CodeCreateEvent(Logger::KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG, |
| 648 Code::cast(code), 0)); | 648 Code::cast(code), 0)); |
| 649 } | 649 } |
| 650 Object* result; | 650 Object* result; |
| 651 { MaybeObject* maybe_result = | 651 { MaybeObject* maybe_result = |
| 652 receiver->map()->UpdateCodeCache(name, Code::cast(code)); | 652 receiver->UpdateMapCodeCache(name, Code::cast(code)); |
| 653 if (!maybe_result->ToObject(&result)) return maybe_result; | 653 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 654 } | 654 } |
| 655 } | 655 } |
| 656 return code; | 656 return code; |
| 657 } | 657 } |
| 658 | 658 |
| 659 | 659 |
| 660 MaybeObject* StubCache::ComputeStoreNormal(StrictModeFlag strict_mode) { | 660 MaybeObject* StubCache::ComputeStoreNormal(StrictModeFlag strict_mode) { |
| 661 return isolate_->builtins()->builtin((strict_mode == kStrictMode) | 661 return isolate_->builtins()->builtin((strict_mode == kStrictMode) |
| 662 ? Builtins::StoreIC_Normal_Strict | 662 ? Builtins::StoreIC_Normal_Strict |
| (...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1937 } | 1937 } |
| 1938 Code* code = Code::cast(result); | 1938 Code* code = Code::cast(result); |
| 1939 USE(code); | 1939 USE(code); |
| 1940 PROFILE(isolate(), | 1940 PROFILE(isolate(), |
| 1941 CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub")); | 1941 CodeCreateEvent(Logger::STUB_TAG, code, "ExternalArrayStub")); |
| 1942 return result; | 1942 return result; |
| 1943 } | 1943 } |
| 1944 | 1944 |
| 1945 | 1945 |
| 1946 } } // namespace v8::internal | 1946 } } // namespace v8::internal |
| OLD | NEW |