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

Side by Side Diff: test/cctest/test-parsing.cc

Issue 225823003: Implement handlified String::Equals and Name::Equals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored StringToDouble Created 6 years, 8 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/x64/lithium-codegen-x64.cc ('k') | no next file » | 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 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 "Parser failed on:\n" 1360 "Parser failed on:\n"
1361 "\t%s\n" 1361 "\t%s\n"
1362 "with error:\n" 1362 "with error:\n"
1363 "\t%s\n" 1363 "\t%s\n"
1364 "However, the preparser succeeded", 1364 "However, the preparser succeeded",
1365 source->ToCString().get(), message_string->ToCString().get()); 1365 source->ToCString().get(), message_string->ToCString().get());
1366 CHECK(false); 1366 CHECK(false);
1367 } 1367 }
1368 // Check that preparser and parser produce the same error. 1368 // Check that preparser and parser produce the same error.
1369 i::Handle<i::String> preparser_message = FormatMessage(&data); 1369 i::Handle<i::String> preparser_message = FormatMessage(&data);
1370 if (!message_string->Equals(*preparser_message)) { 1370 if (!i::String::Equals(message_string, preparser_message)) {
1371 i::OS::Print( 1371 i::OS::Print(
1372 "Expected parser and preparser to produce the same error on:\n" 1372 "Expected parser and preparser to produce the same error on:\n"
1373 "\t%s\n" 1373 "\t%s\n"
1374 "However, found the following error messages\n" 1374 "However, found the following error messages\n"
1375 "\tparser: %s\n" 1375 "\tparser: %s\n"
1376 "\tpreparser: %s\n", 1376 "\tpreparser: %s\n",
1377 source->ToCString().get(), 1377 source->ToCString().get(),
1378 message_string->ToCString().get(), 1378 message_string->ToCString().get(),
1379 preparser_message->ToCString().get()); 1379 preparser_message->ToCString().get());
1380 CHECK(false); 1380 CHECK(false);
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 RunParserSyncTest(assignment_context_data, bad_statement_data_common, kError); 2568 RunParserSyncTest(assignment_context_data, bad_statement_data_common, kError);
2569 RunParserSyncTest(assignment_context_data, bad_statement_data_for_assignment, 2569 RunParserSyncTest(assignment_context_data, bad_statement_data_for_assignment,
2570 kError); 2570 kError);
2571 2571
2572 RunParserSyncTest(prefix_context_data, good_statement_data, kSuccess); 2572 RunParserSyncTest(prefix_context_data, good_statement_data, kSuccess);
2573 RunParserSyncTest(prefix_context_data, bad_statement_data_common, kError); 2573 RunParserSyncTest(prefix_context_data, bad_statement_data_common, kError);
2574 2574
2575 RunParserSyncTest(postfix_context_data, good_statement_data, kSuccess); 2575 RunParserSyncTest(postfix_context_data, good_statement_data, kSuccess);
2576 RunParserSyncTest(postfix_context_data, bad_statement_data_common, kError); 2576 RunParserSyncTest(postfix_context_data, bad_statement_data_common, kError);
2577 } 2577 }
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698