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

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

Issue 409613002: Store both major and minor key on code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 697
698 #undef CALL_LOGGER_TAG 698 #undef CALL_LOGGER_TAG
699 699
700 700
701 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, 701 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
702 const char* name) { 702 const char* name) {
703 // Create code object in the heap. 703 // Create code object in the heap.
704 CodeDesc desc; 704 CodeDesc desc;
705 masm_.GetCode(&desc); 705 masm_.GetCode(&desc);
706 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject()); 706 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject());
707 if (code->has_major_key()) { 707 if (code->IsCodeStubOrIC()) code->set_stub_key(CodeStub::NoCacheKey());
708 code->set_major_key(CodeStub::NoCache);
709 }
710 #ifdef ENABLE_DISASSEMBLER 708 #ifdef ENABLE_DISASSEMBLER
711 if (FLAG_print_code_stubs) { 709 if (FLAG_print_code_stubs) {
712 OFStream os(stdout); 710 OFStream os(stdout);
713 code->Disassemble(name, os); 711 code->Disassemble(name, os);
714 } 712 }
715 #endif 713 #endif
716 return code; 714 return code;
717 } 715 }
718 716
719 717
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 Handle<FunctionTemplateInfo>( 1431 Handle<FunctionTemplateInfo>(
1434 FunctionTemplateInfo::cast(signature->receiver())); 1432 FunctionTemplateInfo::cast(signature->receiver()));
1435 } 1433 }
1436 } 1434 }
1437 1435
1438 is_simple_api_call_ = true; 1436 is_simple_api_call_ = true;
1439 } 1437 }
1440 1438
1441 1439
1442 } } // namespace v8::internal 1440 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698