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

Side by Side Diff: src/ast.cc

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 // TODO(rossberg): all RecordTypeFeedback functions should disappear 589 // TODO(rossberg): all RecordTypeFeedback functions should disappear
590 // once we use the common type field in the AST consistently. 590 // once we use the common type field in the AST consistently.
591 591
592 void Expression::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) { 592 void Expression::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) {
593 to_boolean_types_ = oracle->ToBooleanTypes(test_id()); 593 to_boolean_types_ = oracle->ToBooleanTypes(test_id());
594 } 594 }
595 595
596 596
597 bool Call::IsUsingCallFeedbackSlot(Isolate* isolate) const { 597 bool Call::IsUsingCallFeedbackSlot(Isolate* isolate) const {
598 CallType call_type = GetCallType(isolate); 598 CallType call_type = GetCallType(isolate);
599 return call_type == LOOKUP_SLOT_CALL || call_type == OTHER_CALL; 599 return (call_type != POSSIBLY_EVAL_CALL);
600 } 600 }
601 601
602 602
603 Call::CallType Call::GetCallType(Isolate* isolate) const { 603 Call::CallType Call::GetCallType(Isolate* isolate) const {
604 VariableProxy* proxy = expression()->AsVariableProxy(); 604 VariableProxy* proxy = expression()->AsVariableProxy();
605 if (proxy != NULL) { 605 if (proxy != NULL) {
606 if (proxy->var()->is_possibly_eval(isolate)) { 606 if (proxy->var()->is_possibly_eval(isolate)) {
607 return POSSIBLY_EVAL_CALL; 607 return POSSIBLY_EVAL_CALL;
608 } else if (proxy->var()->IsUnallocated()) { 608 } else if (proxy->var()->IsUnallocated()) {
609 return GLOBAL_CALL; 609 return GLOBAL_CALL;
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1172 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1173 str = arr; 1173 str = arr;
1174 } else { 1174 } else {
1175 str = DoubleToCString(value_->Number(), buffer); 1175 str = DoubleToCString(value_->Number(), buffer);
1176 } 1176 }
1177 return isolate_->factory()->NewStringFromAsciiChecked(str); 1177 return isolate_->factory()->NewStringFromAsciiChecked(str);
1178 } 1178 }
1179 1179
1180 1180
1181 } } // namespace v8::internal 1181 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/builtins.h » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698