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

Side by Side Diff: src/code-stubs.cc

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address feedback Created 7 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 // 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Counters* counters = isolate->counters(); 78 Counters* counters = isolate->counters();
79 counters->total_stubs_code_size()->Increment(code->instruction_size()); 79 counters->total_stubs_code_size()->Increment(code->instruction_size());
80 } 80 }
81 81
82 82
83 Code::Kind CodeStub::GetCodeKind() const { 83 Code::Kind CodeStub::GetCodeKind() const {
84 return Code::STUB; 84 return Code::STUB;
85 } 85 }
86 86
87 87
88 Handle<Code> CodeStub::GetCodeCopyFromTemplate(Isolate* isolate) {
89 Handle<Code> ic = GetCode(isolate);
90 ic = isolate->factory()->CopyCode(ic);
91 RecordCodeGeneration(*ic, isolate);
92 return ic;
93 }
94
95
88 Handle<Code> PlatformCodeStub::GenerateCode() { 96 Handle<Code> PlatformCodeStub::GenerateCode() {
89 Isolate* isolate = Isolate::Current(); 97 Isolate* isolate = Isolate::Current();
90 Factory* factory = isolate->factory(); 98 Factory* factory = isolate->factory();
91 99
92 // Generate the new code. 100 // Generate the new code.
93 MacroAssembler masm(isolate, NULL, 256); 101 MacroAssembler masm(isolate, NULL, 256);
94 102
95 { 103 {
96 // Update the static counter each time a new code stub is generated. 104 // Update the static counter each time a new code stub is generated.
97 isolate->counters()->code_stubs()->Increment(); 105 isolate->counters()->code_stubs()->Increment();
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 InstallDescriptor(isolate, &stub3); 909 InstallDescriptor(isolate, &stub3);
902 } 910 }
903 911
904 InternalArrayConstructorStub::InternalArrayConstructorStub( 912 InternalArrayConstructorStub::InternalArrayConstructorStub(
905 Isolate* isolate) { 913 Isolate* isolate) {
906 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 914 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
907 } 915 }
908 916
909 917
910 } } // namespace v8::internal 918 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698