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

Side by Side Diff: src/api-experimental.cc

Issue 2237443002: Add ToSmi and Goto operations to FastAccessorAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 32-bit SMI overflow in test Created 4 years, 4 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 | « include/v8-experimental.h ('k') | src/fast-accessor-assembler.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * Implementation for v8-experimental.h. 6 * Implementation for v8-experimental.h.
7 */ 7 */
8 8
9 #include "src/api-experimental.h" 9 #include "src/api-experimental.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 int offset) { 85 int offset) {
86 return FromApi(this)->LoadValue(value_id, offset); 86 return FromApi(this)->LoadValue(value_id, offset);
87 } 87 }
88 88
89 89
90 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id, 90 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id,
91 int offset) { 91 int offset) {
92 return FromApi(this)->LoadObject(value_id, offset); 92 return FromApi(this)->LoadObject(value_id, offset);
93 } 93 }
94 94
95 FastAccessorBuilder::ValueId FastAccessorBuilder::ToSmi(ValueId value_id) {
96 return FromApi(this)->ToSmi(value_id);
97 }
95 98
96 void FastAccessorBuilder::ReturnValue(ValueId value) { 99 void FastAccessorBuilder::ReturnValue(ValueId value) {
97 FromApi(this)->ReturnValue(value); 100 FromApi(this)->ReturnValue(value);
98 } 101 }
99 102
100 103
101 void FastAccessorBuilder::CheckFlagSetOrReturnNull(ValueId value_id, int mask) { 104 void FastAccessorBuilder::CheckFlagSetOrReturnNull(ValueId value_id, int mask) {
102 FromApi(this)->CheckFlagSetOrReturnNull(value_id, mask); 105 FromApi(this)->CheckFlagSetOrReturnNull(value_id, mask);
103 } 106 }
104 107
105 108
106 void FastAccessorBuilder::CheckNotZeroOrReturnNull(ValueId value_id) { 109 void FastAccessorBuilder::CheckNotZeroOrReturnNull(ValueId value_id) {
107 FromApi(this)->CheckNotZeroOrReturnNull(value_id); 110 FromApi(this)->CheckNotZeroOrReturnNull(value_id);
108 } 111 }
109 112
110 113
111 FastAccessorBuilder::LabelId FastAccessorBuilder::MakeLabel() { 114 FastAccessorBuilder::LabelId FastAccessorBuilder::MakeLabel() {
112 return FromApi(this)->MakeLabel(); 115 return FromApi(this)->MakeLabel();
113 } 116 }
114 117
115 118
116 void FastAccessorBuilder::SetLabel(LabelId label_id) { 119 void FastAccessorBuilder::SetLabel(LabelId label_id) {
117 FromApi(this)->SetLabel(label_id); 120 FromApi(this)->SetLabel(label_id);
118 } 121 }
119 122
123 void FastAccessorBuilder::Goto(LabelId label_id) {
124 FromApi(this)->Goto(label_id);
125 }
120 126
121 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id, 127 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id,
122 LabelId label_id) { 128 LabelId label_id) {
123 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); 129 FromApi(this)->CheckNotZeroOrJump(value_id, label_id);
124 } 130 }
125 131
126 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( 132 FastAccessorBuilder::ValueId FastAccessorBuilder::Call(
127 v8::FunctionCallback callback, ValueId value_id) { 133 v8::FunctionCallback callback, ValueId value_id) {
128 return FromApi(this)->Call(callback, value_id); 134 return FromApi(this)->Call(callback, value_id);
129 } 135 }
130 136
131 } // namespace experimental 137 } // namespace experimental
132 } // namespace v8 138 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-experimental.h ('k') | src/fast-accessor-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698