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

Side by Side Diff: src/objects.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 10888 matching lines...) Expand 10 before | Expand all | Expand 10 after
10899 os << "major_key = " << (n == NULL ? "null" : n) << "\n"; 10899 os << "major_key = " << (n == NULL ? "null" : n) << "\n";
10900 } 10900 }
10901 if (is_inline_cache_stub()) { 10901 if (is_inline_cache_stub()) {
10902 os << "ic_state = " << ICState2String(ic_state()) << "\n"; 10902 os << "ic_state = " << ICState2String(ic_state()) << "\n";
10903 PrintExtraICState(os, kind(), extra_ic_state()); 10903 PrintExtraICState(os, kind(), extra_ic_state());
10904 if (ic_state() == MONOMORPHIC) { 10904 if (ic_state() == MONOMORPHIC) {
10905 os << "type = " << StubType2String(type()) << "\n"; 10905 os << "type = " << StubType2String(type()) << "\n";
10906 } 10906 }
10907 if (is_compare_ic_stub()) { 10907 if (is_compare_ic_stub()) {
10908 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); 10908 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC);
10909 CompareICStub stub(stub_key()); 10909 CompareICStub stub(stub_key(), GetIsolate());
10910 os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*" 10910 os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*"
10911 << CompareIC::GetStateName(stub.right()) << " -> " 10911 << CompareIC::GetStateName(stub.right()) << " -> "
10912 << CompareIC::GetStateName(stub.state()) << "\n"; 10912 << CompareIC::GetStateName(stub.state()) << "\n";
10913 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; 10913 os << "compare_operation = " << Token::Name(stub.op()) << "\n";
10914 } 10914 }
10915 } 10915 }
10916 if ((name != NULL) && (name[0] != '\0')) { 10916 if ((name != NULL) && (name[0] != '\0')) {
10917 os << "name = " << name << "\n"; 10917 os << "name = " << name << "\n";
10918 } 10918 }
10919 if (kind() == OPTIMIZED_FUNCTION) { 10919 if (kind() == OPTIMIZED_FUNCTION) {
(...skipping 5503 matching lines...) Expand 10 before | Expand all | Expand 10 after
16423 #define ERROR_MESSAGES_TEXTS(C, T) T, 16423 #define ERROR_MESSAGES_TEXTS(C, T) T,
16424 static const char* error_messages_[] = { 16424 static const char* error_messages_[] = {
16425 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16425 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16426 }; 16426 };
16427 #undef ERROR_MESSAGES_TEXTS 16427 #undef ERROR_MESSAGES_TEXTS
16428 return error_messages_[reason]; 16428 return error_messages_[reason];
16429 } 16429 }
16430 16430
16431 16431
16432 } } // namespace v8::internal 16432 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/x64/code-stubs-x64.h » ('j') | test/cctest/test-code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698