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

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

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 3 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/hydrogen-instructions.h ('k') | src/json.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/hydrogen-instructions.h" 5 #include "src/hydrogen-instructions.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/double.h" 8 #include "src/double.h"
9 #include "src/elements.h" 9 #include "src/elements.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } 1092 }
1093 1093
1094 1094
1095 std::ostream& HCallNewArray::PrintDataTo(std::ostream& os) const { // NOLINT 1095 std::ostream& HCallNewArray::PrintDataTo(std::ostream& os) const { // NOLINT
1096 os << ElementsKindToString(elements_kind()) << " "; 1096 os << ElementsKindToString(elements_kind()) << " ";
1097 return HBinaryCall::PrintDataTo(os); 1097 return HBinaryCall::PrintDataTo(os);
1098 } 1098 }
1099 1099
1100 1100
1101 std::ostream& HCallRuntime::PrintDataTo(std::ostream& os) const { // NOLINT 1101 std::ostream& HCallRuntime::PrintDataTo(std::ostream& os) const { // NOLINT
1102 os << name()->ToCString().get() << " "; 1102 os << function()->name << " ";
1103 if (save_doubles() == kSaveFPRegs) os << "[save doubles] "; 1103 if (save_doubles() == kSaveFPRegs) os << "[save doubles] ";
1104 return os << "#" << argument_count(); 1104 return os << "#" << argument_count();
1105 } 1105 }
1106 1106
1107 1107
1108 std::ostream& HClassOfTestAndBranch::PrintDataTo( 1108 std::ostream& HClassOfTestAndBranch::PrintDataTo(
1109 std::ostream& os) const { // NOLINT 1109 std::ostream& os) const { // NOLINT
1110 return os << "class_of_test(" << NameOf(value()) << ", \"" 1110 return os << "class_of_test(" << NameOf(value()) << ", \""
1111 << class_name()->ToCString().get() << "\")"; 1111 << class_name()->ToCString().get() << "\")";
1112 } 1112 }
(...skipping 3631 matching lines...) Expand 10 before | Expand all | Expand 10 after
4744 case HObjectAccess::kExternalMemory: 4744 case HObjectAccess::kExternalMemory:
4745 os << "[external-memory]"; 4745 os << "[external-memory]";
4746 break; 4746 break;
4747 } 4747 }
4748 4748
4749 return os << "@" << access.offset(); 4749 return os << "@" << access.offset();
4750 } 4750 }
4751 4751
4752 } // namespace internal 4752 } // namespace internal
4753 } // namespace v8 4753 } // namespace v8
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698