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

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

Issue 2186593002: Add faster, but unsafe version of LoadInternalField. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 FastAccessorBuilder::ValueId FastAccessorBuilder::GetReceiver() { 69 FastAccessorBuilder::ValueId FastAccessorBuilder::GetReceiver() {
70 return FromApi(this)->GetReceiver(); 70 return FromApi(this)->GetReceiver();
71 } 71 }
72 72
73 73
74 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadInternalField( 74 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadInternalField(
75 ValueId value, int field_no) { 75 ValueId value, int field_no) {
76 return FromApi(this)->LoadInternalField(value, field_no); 76 return FromApi(this)->LoadInternalField(value, field_no);
77 } 77 }
78 78
79 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadInternalFieldUnsafe(
80 ValueId value, int field_no) {
81 return FromApi(this)->LoadInternalFieldUnsafe(value, field_no);
82 }
79 83
80 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadValue(ValueId value_id, 84 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadValue(ValueId value_id,
81 int offset) { 85 int offset) {
82 return FromApi(this)->LoadValue(value_id, offset); 86 return FromApi(this)->LoadValue(value_id, offset);
83 } 87 }
84 88
85 89
86 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id, 90 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id,
87 int offset) { 91 int offset) {
88 return FromApi(this)->LoadObject(value_id, offset); 92 return FromApi(this)->LoadObject(value_id, offset);
(...skipping 30 matching lines...) Expand all
119 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); 123 FromApi(this)->CheckNotZeroOrJump(value_id, label_id);
120 } 124 }
121 125
122 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( 126 FastAccessorBuilder::ValueId FastAccessorBuilder::Call(
123 v8::FunctionCallback callback, ValueId value_id) { 127 v8::FunctionCallback callback, ValueId value_id) {
124 return FromApi(this)->Call(callback, value_id); 128 return FromApi(this)->Call(callback, value_id);
125 } 129 }
126 130
127 } // namespace experimental 131 } // namespace experimental
128 } // namespace v8 132 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698