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

Side by Side Diff: src/disassembler.cc

Issue 1227893005: TypeofMode replaces TypeofState and ContextualMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 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
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/full-codegen.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 out.AddFormatted(" ;; external reference (%s)", reference_name); 190 out.AddFormatted(" ;; external reference (%s)", reference_name);
191 } else if (RelocInfo::IsCodeTarget(rmode)) { 191 } else if (RelocInfo::IsCodeTarget(rmode)) {
192 out.AddFormatted(" ;; code:"); 192 out.AddFormatted(" ;; code:");
193 if (rmode == RelocInfo::CONSTRUCT_CALL) { 193 if (rmode == RelocInfo::CONSTRUCT_CALL) {
194 out.AddFormatted(" constructor,"); 194 out.AddFormatted(" constructor,");
195 } 195 }
196 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); 196 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
197 Code::Kind kind = code->kind(); 197 Code::Kind kind = code->kind();
198 if (code->is_inline_cache_stub()) { 198 if (code->is_inline_cache_stub()) {
199 if (kind == Code::LOAD_IC && 199 if (kind == Code::LOAD_IC &&
200 LoadICState::GetContextualMode(code->extra_ic_state()) == 200 LoadICState::GetTypeofMode(code->extra_ic_state()) ==
201 CONTEXTUAL) { 201 NOT_INSIDE_TYPEOF) {
202 out.AddFormatted(" contextual,"); 202 out.AddFormatted(" contextual,");
203 } 203 }
204 InlineCacheState ic_state = code->ic_state(); 204 InlineCacheState ic_state = code->ic_state();
205 out.AddFormatted(" %s, %s", Code::Kind2String(kind), 205 out.AddFormatted(" %s, %s", Code::Kind2String(kind),
206 Code::ICState2String(ic_state)); 206 Code::ICState2String(ic_state));
207 if (ic_state == MONOMORPHIC) { 207 if (ic_state == MONOMORPHIC) {
208 Code::StubType type = code->type(); 208 Code::StubType type = code->type();
209 out.AddFormatted(", %s", Code::StubType2String(type)); 209 out.AddFormatted(", %s", Code::StubType2String(type));
210 } 210 }
211 } else if (kind == Code::STUB || kind == Code::HANDLER) { 211 } else if (kind == Code::STUB || kind == Code::HANDLER) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, 283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
284 byte* end, Code* code) { 284 byte* end, Code* code) {
285 return 0; 285 return 0;
286 } 286 }
287 287
288 #endif // ENABLE_DISASSEMBLER 288 #endif // ENABLE_DISASSEMBLER
289 289
290 } // namespace internal 290 } // namespace internal
291 } // namespace v8 291 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698