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

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

Issue 2549773002: Internalize strings in-place (Closed)
Patch Set: forgot one Created 4 years 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
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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 Address deoptimization_handler, 66 Address deoptimization_handler,
67 int hint_stack_parameter_count, 67 int hint_stack_parameter_count,
68 StubFunctionMode function_mode) { 68 StubFunctionMode function_mode) {
69 Initialize(deoptimization_handler, hint_stack_parameter_count, function_mode); 69 Initialize(deoptimization_handler, hint_stack_parameter_count, function_mode);
70 stack_parameter_count_ = stack_parameter_count; 70 stack_parameter_count_ = stack_parameter_count;
71 } 71 }
72 72
73 73
74 bool CodeStub::FindCodeInCache(Code** code_out) { 74 bool CodeStub::FindCodeInCache(Code** code_out) {
75 UnseededNumberDictionary* stubs = isolate()->heap()->code_stubs(); 75 UnseededNumberDictionary* stubs = isolate()->heap()->code_stubs();
76 int index = stubs->FindEntry(GetKey()); 76 int index = stubs->FindEntry(isolate(), GetKey());
77 if (index != UnseededNumberDictionary::kNotFound) { 77 if (index != UnseededNumberDictionary::kNotFound) {
78 *code_out = Code::cast(stubs->ValueAt(index)); 78 *code_out = Code::cast(stubs->ValueAt(index));
79 return true; 79 return true;
80 } 80 }
81 return false; 81 return false;
82 } 82 }
83 83
84 84
85 void CodeStub::RecordCodeGeneration(Handle<Code> code) { 85 void CodeStub::RecordCodeGeneration(Handle<Code> code) {
86 std::ostringstream os; 86 std::ostringstream os;
(...skipping 3119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3206 } 3206 }
3207 3207
3208 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 3208 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
3209 : PlatformCodeStub(isolate) {} 3209 : PlatformCodeStub(isolate) {}
3210 3210
3211 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 3211 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
3212 : PlatformCodeStub(isolate) {} 3212 : PlatformCodeStub(isolate) {}
3213 3213
3214 } // namespace internal 3214 } // namespace internal
3215 } // namespace v8 3215 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698