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

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

Issue 1620293002: Add native callbacks to FastAccessorAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: clean-up parameter handling Created 4 years, 11 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/compiler/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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void FastAccessorBuilder::SetLabel(LabelId label_id) { 115 void FastAccessorBuilder::SetLabel(LabelId label_id) {
116 FromApi(this)->SetLabel(label_id); 116 FromApi(this)->SetLabel(label_id);
117 } 117 }
118 118
119 119
120 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id, 120 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id,
121 LabelId label_id) { 121 LabelId label_id) {
122 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); 122 FromApi(this)->CheckNotZeroOrJump(value_id, label_id);
123 } 123 }
124 124
125
126 FastAccessorBuilder::ValueId FastAccessorBuilder::Call(
127 v8::FunctionCallback callback, ValueId value_id) {
128 return FromApi(this)->Call(callback, value_id);
129 }
130
125 } // namespace experimental 131 } // namespace experimental
126 } // namespace v8 132 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-experimental.h ('k') | src/compiler/fast-accessor-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698