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

Side by Side Diff: test/cctest/test-debug.cc

Issue 7043003: Version 3.3.8 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/external-array.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4246 matching lines...) Expand 10 before | Expand all | Expand 10 after
4257 // Get the interceptor properties for the object with only named interceptor. 4257 // Get the interceptor properties for the object with only named interceptor.
4258 CompileRun("named_values = named_mirror.properties()"); 4258 CompileRun("named_values = named_mirror.properties()");
4259 4259
4260 // Check that the properties are interceptor properties. 4260 // Check that the properties are interceptor properties.
4261 for (int i = 0; i < 3; i++) { 4261 for (int i = 0; i < 3; i++) {
4262 EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer; 4262 EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer;
4263 OS::SNPrintF(buffer, 4263 OS::SNPrintF(buffer,
4264 "named_values[%d] instanceof debug.PropertyMirror", i); 4264 "named_values[%d] instanceof debug.PropertyMirror", i);
4265 CHECK(CompileRun(buffer.start())->BooleanValue()); 4265 CHECK(CompileRun(buffer.start())->BooleanValue());
4266 4266
4267 // 4 is PropertyType.Interceptor 4267 // 5 is PropertyType.Interceptor
4268 OS::SNPrintF(buffer, "named_values[%d].propertyType()", i); 4268 OS::SNPrintF(buffer, "named_values[%d].propertyType()", i);
4269 CHECK_EQ(4, CompileRun(buffer.start())->Int32Value()); 4269 CHECK_EQ(5, CompileRun(buffer.start())->Int32Value());
4270 4270
4271 OS::SNPrintF(buffer, "named_values[%d].isNative()", i); 4271 OS::SNPrintF(buffer, "named_values[%d].isNative()", i);
4272 CHECK(CompileRun(buffer.start())->BooleanValue()); 4272 CHECK(CompileRun(buffer.start())->BooleanValue());
4273 } 4273 }
4274 4274
4275 // Get the interceptor properties for the object with only indexed 4275 // Get the interceptor properties for the object with only indexed
4276 // interceptor. 4276 // interceptor.
4277 CompileRun("indexed_values = indexed_mirror.properties()"); 4277 CompileRun("indexed_values = indexed_mirror.properties()");
4278 4278
4279 // Check that the properties are interceptor properties. 4279 // Check that the properties are interceptor properties.
(...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after
7260 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); 7260 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}");
7261 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); 7261 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}");
7262 7262
7263 // Get rid of the debug event listener. 7263 // Get rid of the debug event listener.
7264 v8::Debug::SetDebugEventListener(NULL); 7264 v8::Debug::SetDebugEventListener(NULL);
7265 CheckDebuggerUnloaded(); 7265 CheckDebuggerUnloaded();
7266 } 7266 }
7267 7267
7268 7268
7269 #endif // ENABLE_DEBUGGER_SUPPORT 7269 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/external-array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698