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

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

Issue 504183002: Remove dead code from LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use default property details for INTERCEPTOR results Created 6 years, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4365 matching lines...) Expand 10 before | Expand all | Expand 10 after
4376 // Get the interceptor properties for the object with only named interceptor. 4376 // Get the interceptor properties for the object with only named interceptor.
4377 CompileRun("var named_values = named_mirror.properties()"); 4377 CompileRun("var named_values = named_mirror.properties()");
4378 4378
4379 // Check that the properties are interceptor properties. 4379 // Check that the properties are interceptor properties.
4380 for (int i = 0; i < 3; i++) { 4380 for (int i = 0; i < 3; i++) {
4381 EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer; 4381 EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer;
4382 SNPrintF(buffer, 4382 SNPrintF(buffer,
4383 "named_values[%d] instanceof debug.PropertyMirror", i); 4383 "named_values[%d] instanceof debug.PropertyMirror", i);
4384 CHECK(CompileRun(buffer.start())->BooleanValue()); 4384 CHECK(CompileRun(buffer.start())->BooleanValue());
4385 4385
4386 SNPrintF(buffer, "named_values[%d].propertyType()", i); 4386 SNPrintF(buffer, "named_values[%d].interceptor_", i);
4387 CHECK_EQ(v8::internal::INTERCEPTOR, 4387 CHECK(CompileRun(buffer.start())->BooleanValue());
4388 CompileRun(buffer.start())->Int32Value());
4389 4388
4390 SNPrintF(buffer, "named_values[%d].isNative()", i); 4389 SNPrintF(buffer, "named_values[%d].isNative()", i);
4391 CHECK(CompileRun(buffer.start())->BooleanValue()); 4390 CHECK(CompileRun(buffer.start())->BooleanValue());
4392 } 4391 }
4393 4392
4394 // Get the interceptor properties for the object with only indexed 4393 // Get the interceptor properties for the object with only indexed
4395 // interceptor. 4394 // interceptor.
4396 CompileRun("var indexed_values = indexed_mirror.properties()"); 4395 CompileRun("var indexed_values = indexed_mirror.properties()");
4397 4396
4398 // Check that the properties are interceptor properties. 4397 // Check that the properties are interceptor properties.
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
7404 v8::Isolate* isolate = env->GetIsolate(); 7403 v8::Isolate* isolate = env->GetIsolate();
7405 v8::HandleScope scope(isolate); 7404 v8::HandleScope scope(isolate);
7406 v8::Debug::SetDebugEventListener(DebugBreakTriggerTerminate); 7405 v8::Debug::SetDebugEventListener(DebugBreakTriggerTerminate);
7407 TerminationThread terminator(isolate); 7406 TerminationThread terminator(isolate);
7408 terminator.Start(); 7407 terminator.Start();
7409 v8::TryCatch try_catch; 7408 v8::TryCatch try_catch;
7410 v8::Debug::DebugBreak(isolate); 7409 v8::Debug::DebugBreak(isolate);
7411 CompileRun("while (true);"); 7410 CompileRun("while (true);");
7412 CHECK(try_catch.HasTerminated()); 7411 CHECK(try_catch.HasTerminated());
7413 } 7412 }
OLDNEW
« src/hydrogen.cc ('K') | « src/runtime.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698