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

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

Issue 18357004: Revert r15419: "Generate StoreGlobal stubs with Hydrogen" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Counters* counters = isolate->counters(); 77 Counters* counters = isolate->counters();
78 counters->total_stubs_code_size()->Increment(code->instruction_size()); 78 counters->total_stubs_code_size()->Increment(code->instruction_size());
79 } 79 }
80 80
81 81
82 Code::Kind CodeStub::GetCodeKind() const { 82 Code::Kind CodeStub::GetCodeKind() const {
83 return Code::STUB; 83 return Code::STUB;
84 } 84 }
85 85
86 86
87 Handle<Code> CodeStub::GetCodeCopyFromTemplate(Isolate* isolate) {
88 Handle<Code> ic = GetCode(isolate);
89 ic = isolate->factory()->CopyCode(ic);
90 RecordCodeGeneration(*ic, isolate);
91 return ic;
92 }
93
94
95 Handle<Code> PlatformCodeStub::GenerateCode() { 87 Handle<Code> PlatformCodeStub::GenerateCode() {
96 Isolate* isolate = Isolate::Current(); 88 Isolate* isolate = Isolate::Current();
97 Factory* factory = isolate->factory(); 89 Factory* factory = isolate->factory();
98 90
99 // Generate the new code. 91 // Generate the new code.
100 MacroAssembler masm(isolate, NULL, 256); 92 MacroAssembler masm(isolate, NULL, 256);
101 93
102 { 94 {
103 // Update the static counter each time a new code stub is generated. 95 // Update the static counter each time a new code stub is generated.
104 isolate->counters()->code_stubs()->Increment(); 96 isolate->counters()->code_stubs()->Increment();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 InstallDescriptor(isolate, &stub3); 815 InstallDescriptor(isolate, &stub3);
824 } 816 }
825 817
826 InternalArrayConstructorStub::InternalArrayConstructorStub( 818 InternalArrayConstructorStub::InternalArrayConstructorStub(
827 Isolate* isolate) { 819 Isolate* isolate) {
828 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 820 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
829 } 821 }
830 822
831 823
832 } } // namespace v8::internal 824 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698