Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: src/stub-cache.cc

Issue 6685073: Remember and reuse derived map for external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | src/v8globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698