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

Side by Side Diff: src/objects-debug.cc

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing merge artifacts Created 5 years 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/objects-body-descriptors-inl.h ('k') | src/objects-inl.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 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 JSWeakSet::cast(this)->JSWeakSetVerify(); 157 JSWeakSet::cast(this)->JSWeakSetVerify();
158 break; 158 break;
159 case JS_REGEXP_TYPE: 159 case JS_REGEXP_TYPE:
160 JSRegExp::cast(this)->JSRegExpVerify(); 160 JSRegExp::cast(this)->JSRegExpVerify();
161 break; 161 break;
162 case FILLER_TYPE: 162 case FILLER_TYPE:
163 break; 163 break;
164 case JS_PROXY_TYPE: 164 case JS_PROXY_TYPE:
165 JSProxy::cast(this)->JSProxyVerify(); 165 JSProxy::cast(this)->JSProxyVerify();
166 break; 166 break;
167 case JS_FUNCTION_PROXY_TYPE:
168 JSFunctionProxy::cast(this)->JSFunctionProxyVerify();
169 break;
170 case FOREIGN_TYPE: 167 case FOREIGN_TYPE:
171 Foreign::cast(this)->ForeignVerify(); 168 Foreign::cast(this)->ForeignVerify();
172 break; 169 break;
173 case SHARED_FUNCTION_INFO_TYPE: 170 case SHARED_FUNCTION_INFO_TYPE:
174 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); 171 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify();
175 break; 172 break;
176 case JS_MESSAGE_OBJECT_TYPE: 173 case JS_MESSAGE_OBJECT_TYPE:
177 JSMessageObject::cast(this)->JSMessageObjectVerify(); 174 JSMessageObject::cast(this)->JSMessageObjectVerify();
178 break; 175 break;
179 case JS_ARRAY_BUFFER_TYPE: 176 case JS_ARRAY_BUFFER_TYPE:
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 } 810 }
814 811
815 812
816 void JSProxy::JSProxyVerify() { 813 void JSProxy::JSProxyVerify() {
817 CHECK(IsJSProxy()); 814 CHECK(IsJSProxy());
818 VerifyPointer(handler()); 815 VerifyPointer(handler());
819 CHECK(hash()->IsSmi() || hash()->IsUndefined()); 816 CHECK(hash()->IsSmi() || hash()->IsUndefined());
820 } 817 }
821 818
822 819
823 void JSFunctionProxy::JSFunctionProxyVerify() {
824 CHECK(IsJSFunctionProxy());
825 JSProxyVerify();
826 VerifyPointer(call_trap());
827 VerifyPointer(construct_trap());
828 CHECK(map()->is_callable());
829 }
830
831
832 void JSArrayBuffer::JSArrayBufferVerify() { 820 void JSArrayBuffer::JSArrayBufferVerify() {
833 CHECK(IsJSArrayBuffer()); 821 CHECK(IsJSArrayBuffer());
834 JSObjectVerify(); 822 JSObjectVerify();
835 VerifyPointer(byte_length()); 823 VerifyPointer(byte_length());
836 CHECK(byte_length()->IsSmi() || byte_length()->IsHeapNumber() 824 CHECK(byte_length()->IsSmi() || byte_length()->IsHeapNumber()
837 || byte_length()->IsUndefined()); 825 || byte_length()->IsUndefined());
838 } 826 }
839 827
840 828
841 void JSArrayBufferView::JSArrayBufferViewVerify() { 829 void JSArrayBufferView::JSArrayBufferViewVerify() {
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1304
1317 // Both are done at the same time. 1305 // Both are done at the same time.
1318 CHECK_EQ(new_it.done(), old_it.done()); 1306 CHECK_EQ(new_it.done(), old_it.done());
1319 } 1307 }
1320 1308
1321 1309
1322 #endif // DEBUG 1310 #endif // DEBUG
1323 1311
1324 } // namespace internal 1312 } // namespace internal
1325 } // namespace v8 1313 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-body-descriptors-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698