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

Side by Side Diff: src/ast.cc

Issue 12095035: %X => %_X, %_X => %__X (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase and fix spacing issue Created 7 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 | 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 DONT_CACHE_NODE(ModuleLiteral) 1080 DONT_CACHE_NODE(ModuleLiteral)
1081 1081
1082 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { 1082 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) {
1083 increase_node_count(); 1083 increase_node_count();
1084 if (node->is_jsruntime()) { 1084 if (node->is_jsruntime()) {
1085 // Don't try to inline JS runtime calls because we don't (currently) even 1085 // Don't try to inline JS runtime calls because we don't (currently) even
1086 // optimize them. 1086 // optimize them.
1087 add_flag(kDontInline); 1087 add_flag(kDontInline);
1088 } else if (node->function()->intrinsic_type == Runtime::INLINE && 1088 } else if (node->function()->intrinsic_type == Runtime::INLINE &&
1089 (node->name()->IsOneByteEqualTo( 1089 (node->name()->IsOneByteEqualTo(
1090 STATIC_ASCII_VECTOR("_ArgumentsLength")) || 1090 STATIC_ASCII_VECTOR("__ArgumentsLength")) ||
1091 node->name()->IsOneByteEqualTo(STATIC_ASCII_VECTOR("_Arguments")))) { 1091 node->name()->IsOneByteEqualTo(STATIC_ASCII_VECTOR("__Arguments")))) {
1092 // Don't inline the %_ArgumentsLength or %_Arguments because their 1092 // Don't inline the %_ArgumentsLength or %_Arguments because their
1093 // implementation will not work. There is no stack frame to get them 1093 // implementation will not work. There is no stack frame to get them
1094 // from. 1094 // from.
1095 add_flag(kDontInline); 1095 add_flag(kDontInline);
1096 } 1096 }
1097 } 1097 }
1098 1098
1099 #undef REGULAR_NODE 1099 #undef REGULAR_NODE
1100 #undef DONT_OPTIMIZE_NODE 1100 #undef DONT_OPTIMIZE_NODE
1101 #undef DONT_INLINE_NODE 1101 #undef DONT_INLINE_NODE
(...skipping 12 matching lines...) Expand all
1114 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1114 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1115 str = arr; 1115 str = arr;
1116 } else { 1116 } else {
1117 str = DoubleToCString(handle_->Number(), buffer); 1117 str = DoubleToCString(handle_->Number(), buffer);
1118 } 1118 }
1119 return FACTORY->NewStringFromAscii(CStrVector(str)); 1119 return FACTORY->NewStringFromAscii(CStrVector(str));
1120 } 1120 }
1121 1121
1122 1122
1123 } } // namespace v8::internal 1123 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698