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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 12957004: ES6 symbols: turn symbols into a proper primitive type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 9 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 parameter_count()->PrintNameTo(stream); 1270 parameter_count()->PrintNameTo(stream);
1271 stream->Add(" values)"); 1271 stream->Add(" values)");
1272 } 1272 }
1273 1273
1274 1274
1275 Representation HBranch::observed_input_representation(int index) { 1275 Representation HBranch::observed_input_representation(int index) {
1276 static const ToBooleanStub::Types tagged_types( 1276 static const ToBooleanStub::Types tagged_types(
1277 ToBooleanStub::UNDEFINED | 1277 ToBooleanStub::UNDEFINED |
1278 ToBooleanStub::NULL_TYPE | 1278 ToBooleanStub::NULL_TYPE |
1279 ToBooleanStub::SPEC_OBJECT | 1279 ToBooleanStub::SPEC_OBJECT |
1280 ToBooleanStub::STRING); 1280 ToBooleanStub::STRING |
1281 ToBooleanStub::SYMBOL);
1281 if (expected_input_types_.ContainsAnyOf(tagged_types)) { 1282 if (expected_input_types_.ContainsAnyOf(tagged_types)) {
1282 return Representation::Tagged(); 1283 return Representation::Tagged();
1283 } else if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { 1284 } else if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) {
1284 return Representation::Double(); 1285 return Representation::Double();
1285 } else if (expected_input_types_.Contains(ToBooleanStub::SMI)) { 1286 } else if (expected_input_types_.Contains(ToBooleanStub::SMI)) {
1286 return Representation::Integer32(); 1287 return Representation::Integer32();
1287 } else { 1288 } else {
1288 return Representation::None(); 1289 return Representation::None();
1289 } 1290 }
1290 } 1291 }
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 3519
3519 3520
3520 void HCheckFunction::Verify() { 3521 void HCheckFunction::Verify() {
3521 HInstruction::Verify(); 3522 HInstruction::Verify();
3522 ASSERT(HasNoUses()); 3523 ASSERT(HasNoUses());
3523 } 3524 }
3524 3525
3525 #endif 3526 #endif
3526 3527
3527 } } // namespace v8::internal 3528 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698