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

Side by Side Diff: src/ast.cc

Issue 6682025: Crankshaft support for StringCharFromCode. (Closed)
Patch Set: Ports Created 9 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
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 } else if (oracle->LoadIsBuiltin(this, 533 } else if (oracle->LoadIsBuiltin(this,
534 Builtins::LoadIC_FunctionPrototype)) { 534 Builtins::LoadIC_FunctionPrototype)) {
535 is_function_prototype_ = true; 535 is_function_prototype_ = true;
536 } else { 536 } else {
537 Literal* lit_key = key()->AsLiteral(); 537 Literal* lit_key = key()->AsLiteral();
538 ASSERT(lit_key != NULL && lit_key->handle()->IsString()); 538 ASSERT(lit_key != NULL && lit_key->handle()->IsString());
539 Handle<String> name = Handle<String>::cast(lit_key->handle()); 539 Handle<String> name = Handle<String>::cast(lit_key->handle());
540 ZoneMapList* types = oracle->LoadReceiverTypes(this, name); 540 ZoneMapList* types = oracle->LoadReceiverTypes(this, name);
541 receiver_types_ = types; 541 receiver_types_ = types;
542 } 542 }
543 } else if (oracle->LoadIsBuiltin(this, Builtins::KeyedLoadIC_String)) {
544 is_string_access_ = true;
543 } else if (is_monomorphic_) { 545 } else if (is_monomorphic_) {
544 monomorphic_receiver_type_ = oracle->LoadMonomorphicReceiverType(this); 546 monomorphic_receiver_type_ = oracle->LoadMonomorphicReceiverType(this);
545 if (monomorphic_receiver_type_->has_external_array_elements()) { 547 if (monomorphic_receiver_type_->has_external_array_elements()) {
546 SetExternalArrayType(oracle->GetKeyedLoadExternalArrayType(this)); 548 SetExternalArrayType(oracle->GetKeyedLoadExternalArrayType(this));
547 } 549 }
548 } 550 }
549 } 551 }
550 552
551 553
552 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle) { 554 void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 ZoneList<Statement*>* statements, 1068 ZoneList<Statement*>* statements,
1067 int pos) 1069 int pos)
1068 : label_(label), 1070 : label_(label),
1069 statements_(statements), 1071 statements_(statements),
1070 position_(pos), 1072 position_(pos),
1071 compare_type_(NONE), 1073 compare_type_(NONE),
1072 entry_id_(AstNode::GetNextId()) { 1074 entry_id_(AstNode::GetNextId()) {
1073 } 1075 }
1074 1076
1075 } } // namespace v8::internal 1077 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698