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

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

Issue 542613003: Introduce code stub constructors for stub keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: define MajorKey inline Created 6 years, 3 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/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 Handle<Object> probe( 310 Handle<Object> probe(
311 known_map_->FindInCodeCache( 311 known_map_->FindInCodeCache(
312 strict() ? 312 strict() ?
313 *factory->strict_compare_ic_string() : 313 *factory->strict_compare_ic_string() :
314 *factory->compare_ic_string(), 314 *factory->compare_ic_string(),
315 flags), 315 flags),
316 isolate()); 316 isolate());
317 if (probe->IsCode()) { 317 if (probe->IsCode()) {
318 *code_out = Code::cast(*probe); 318 *code_out = Code::cast(*probe);
319 #ifdef DEBUG 319 #ifdef DEBUG
320 CompareICStub decode((*code_out)->stub_key()); 320 CompareICStub decode((*code_out)->stub_key(), isolate());
321 DCHECK(op() == decode.op()); 321 DCHECK(op() == decode.op());
322 DCHECK(left() == decode.left()); 322 DCHECK(left() == decode.left());
323 DCHECK(right() == decode.right()); 323 DCHECK(right() == decode.right());
324 DCHECK(state() == decode.state()); 324 DCHECK(state() == decode.state());
325 #endif 325 #endif
326 return true; 326 return true;
327 } 327 }
328 return false; 328 return false;
329 } 329 }
330 330
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 InstallDescriptor(isolate, &stub3); 1056 InstallDescriptor(isolate, &stub3);
1057 } 1057 }
1058 1058
1059 InternalArrayConstructorStub::InternalArrayConstructorStub( 1059 InternalArrayConstructorStub::InternalArrayConstructorStub(
1060 Isolate* isolate) : PlatformCodeStub(isolate) { 1060 Isolate* isolate) : PlatformCodeStub(isolate) {
1061 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1061 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1062 } 1062 }
1063 1063
1064 1064
1065 } } // namespace v8::internal 1065 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | test/cctest/test-code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698