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

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

Issue 11896091: Replace store array length builtin with codestub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Only inform of updating IC after actually updating it. Created 7 years, 11 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/stub-cache.h ('k') | src/x64/code-stubs-x64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 int entry = cache->FindEntry(isolate_, flags); 767 int entry = cache->FindEntry(isolate_, flags);
768 if (entry != -1) return Handle<Code>(Code::cast(cache->ValueAt(entry))); 768 if (entry != -1) return Handle<Code>(Code::cast(cache->ValueAt(entry)));
769 769
770 StubCompiler compiler(isolate_); 770 StubCompiler compiler(isolate_);
771 Handle<Code> code = compiler.CompileCallNormal(flags); 771 Handle<Code> code = compiler.CompileCallNormal(flags);
772 FillCache(isolate_, code); 772 FillCache(isolate_, code);
773 return code; 773 return code;
774 } 774 }
775 775
776 776
777 Handle<Code> StubCache::ComputeCallArguments(int argc, Code::Kind kind) { 777 Handle<Code> StubCache::ComputeCallArguments(int argc) {
778 ASSERT(kind == Code::KEYED_CALL_IC);
779 Code::Flags flags = 778 Code::Flags flags =
780 Code::ComputeFlags(kind, MEGAMORPHIC, Code::kNoExtraICState, 779 Code::ComputeFlags(Code::KEYED_CALL_IC, MEGAMORPHIC,
781 Code::NORMAL, argc); 780 Code::kNoExtraICState, Code::NORMAL, argc);
782 Handle<UnseededNumberDictionary> cache = 781 Handle<UnseededNumberDictionary> cache =
783 isolate_->factory()->non_monomorphic_cache(); 782 isolate_->factory()->non_monomorphic_cache();
784 int entry = cache->FindEntry(isolate_, flags); 783 int entry = cache->FindEntry(isolate_, flags);
785 if (entry != -1) return Handle<Code>(Code::cast(cache->ValueAt(entry))); 784 if (entry != -1) return Handle<Code>(Code::cast(cache->ValueAt(entry)));
786 785
787 StubCompiler compiler(isolate_); 786 StubCompiler compiler(isolate_);
788 Handle<Code> code = compiler.CompileCallArguments(flags); 787 Handle<Code> code = compiler.CompileCallArguments(flags);
789 FillCache(isolate_, code); 788 FillCache(isolate_, code);
790 return code; 789 return code;
791 } 790 }
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 Handle<FunctionTemplateInfo>( 1642 Handle<FunctionTemplateInfo>(
1644 FunctionTemplateInfo::cast(signature->receiver())); 1643 FunctionTemplateInfo::cast(signature->receiver()));
1645 } 1644 }
1646 } 1645 }
1647 1646
1648 is_simple_api_call_ = true; 1647 is_simple_api_call_ = true;
1649 } 1648 }
1650 1649
1651 1650
1652 } } // namespace v8::internal 1651 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698