| OLD | NEW |
| 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 Loading... |
| 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); | |
| 4387 CHECK_EQ(v8::internal::INTERCEPTOR, | |
| 4388 CompileRun(buffer.start())->Int32Value()); | |
| 4389 | |
| 4390 SNPrintF(buffer, "named_values[%d].isNative()", i); | 4386 SNPrintF(buffer, "named_values[%d].isNative()", i); |
| 4391 CHECK(CompileRun(buffer.start())->BooleanValue()); | 4387 CHECK(CompileRun(buffer.start())->BooleanValue()); |
| 4392 } | 4388 } |
| 4393 | 4389 |
| 4394 // Get the interceptor properties for the object with only indexed | 4390 // Get the interceptor properties for the object with only indexed |
| 4395 // interceptor. | 4391 // interceptor. |
| 4396 CompileRun("var indexed_values = indexed_mirror.properties()"); | 4392 CompileRun("var indexed_values = indexed_mirror.properties()"); |
| 4397 | 4393 |
| 4398 // Check that the properties are interceptor properties. | 4394 // Check that the properties are interceptor properties. |
| 4399 for (int i = 0; i < 2; i++) { | 4395 for (int i = 0; i < 2; i++) { |
| (...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7404 v8::Isolate* isolate = env->GetIsolate(); | 7400 v8::Isolate* isolate = env->GetIsolate(); |
| 7405 v8::HandleScope scope(isolate); | 7401 v8::HandleScope scope(isolate); |
| 7406 v8::Debug::SetDebugEventListener(DebugBreakTriggerTerminate); | 7402 v8::Debug::SetDebugEventListener(DebugBreakTriggerTerminate); |
| 7407 TerminationThread terminator(isolate); | 7403 TerminationThread terminator(isolate); |
| 7408 terminator.Start(); | 7404 terminator.Start(); |
| 7409 v8::TryCatch try_catch; | 7405 v8::TryCatch try_catch; |
| 7410 v8::Debug::DebugBreak(isolate); | 7406 v8::Debug::DebugBreak(isolate); |
| 7411 CompileRun("while (true);"); | 7407 CompileRun("while (true);"); |
| 7412 CHECK(try_catch.HasTerminated()); | 7408 CHECK(try_catch.HasTerminated()); |
| 7413 } | 7409 } |
| OLD | NEW |