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

Side by Side Diff: src/ic/ic-state.cc

Issue 1655833002: Remove the template magic from types.(h|cc), remove types-inl.h. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo whitespace change Created 4 years, 10 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/crankshaft/typing.cc ('k') | src/interface-descriptors.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ic/ic-state.h" 5 #include "src/ic/ic-state.h"
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 return "GENERIC"; 364 return "GENERIC";
365 } 365 }
366 UNREACHABLE(); 366 UNREACHABLE();
367 return NULL; 367 return NULL;
368 } 368 }
369 369
370 370
371 Type* CompareICState::StateToType(Zone* zone, State state, Handle<Map> map) { 371 Type* CompareICState::StateToType(Zone* zone, State state, Handle<Map> map) {
372 switch (state) { 372 switch (state) {
373 case UNINITIALIZED: 373 case UNINITIALIZED:
374 return Type::None(zone); 374 return Type::None();
375 case BOOLEAN: 375 case BOOLEAN:
376 return Type::Boolean(zone); 376 return Type::Boolean();
377 case SMI: 377 case SMI:
378 return Type::SignedSmall(zone); 378 return Type::SignedSmall();
379 case NUMBER: 379 case NUMBER:
380 return Type::Number(zone); 380 return Type::Number();
381 case STRING: 381 case STRING:
382 return Type::String(zone); 382 return Type::String();
383 case INTERNALIZED_STRING: 383 case INTERNALIZED_STRING:
384 return Type::InternalizedString(zone); 384 return Type::InternalizedString();
385 case UNIQUE_NAME: 385 case UNIQUE_NAME:
386 return Type::UniqueName(zone); 386 return Type::UniqueName();
387 case RECEIVER: 387 case RECEIVER:
388 return Type::Receiver(zone); 388 return Type::Receiver();
389 case KNOWN_RECEIVER: 389 case KNOWN_RECEIVER:
390 return map.is_null() ? Type::Receiver(zone) : Type::Class(map, zone); 390 return map.is_null() ? Type::Receiver() : Type::Class(map, zone);
391 case GENERIC: 391 case GENERIC:
392 return Type::Any(zone); 392 return Type::Any();
393 } 393 }
394 UNREACHABLE(); 394 UNREACHABLE();
395 return NULL; 395 return NULL;
396 } 396 }
397 397
398 398
399 CompareICState::State CompareICState::NewInputState(State old_state, 399 CompareICState::State CompareICState::NewInputState(State old_state,
400 Handle<Object> value) { 400 Handle<Object> value) {
401 switch (old_state) { 401 switch (old_state) {
402 case UNINITIALIZED: 402 case UNINITIALIZED:
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 case RECEIVER: 501 case RECEIVER:
502 case GENERIC: 502 case GENERIC:
503 return GENERIC; 503 return GENERIC;
504 } 504 }
505 UNREACHABLE(); 505 UNREACHABLE();
506 return GENERIC; // Make the compiler happy. 506 return GENERIC; // Make the compiler happy.
507 } 507 }
508 508
509 } // namespace internal 509 } // namespace internal
510 } // namespace v8 510 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/typing.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698