| 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 4255 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4266   // Get the interceptor properties for the object with only named interceptor. |  4266   // Get the interceptor properties for the object with only named interceptor. | 
|  4267   CompileRun("var named_values = named_mirror.properties()"); |  4267   CompileRun("var named_values = named_mirror.properties()"); | 
|  4268  |  4268  | 
|  4269   // Check that the properties are interceptor properties. |  4269   // Check that the properties are interceptor properties. | 
|  4270   for (int i = 0; i < 3; i++) { |  4270   for (int i = 0; i < 3; i++) { | 
|  4271     EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer; |  4271     EmbeddedVector<char, SMALL_STRING_BUFFER_SIZE> buffer; | 
|  4272     OS::SNPrintF(buffer, |  4272     OS::SNPrintF(buffer, | 
|  4273                  "named_values[%d] instanceof debug.PropertyMirror", i); |  4273                  "named_values[%d] instanceof debug.PropertyMirror", i); | 
|  4274     CHECK(CompileRun(buffer.start())->BooleanValue()); |  4274     CHECK(CompileRun(buffer.start())->BooleanValue()); | 
|  4275  |  4275  | 
|  4276     // 5 is PropertyType.Interceptor |  | 
|  4277     OS::SNPrintF(buffer, "named_values[%d].propertyType()", i); |  4276     OS::SNPrintF(buffer, "named_values[%d].propertyType()", i); | 
|  4278     CHECK_EQ(5, CompileRun(buffer.start())->Int32Value()); |  4277     CHECK_EQ(v8::internal::INTERCEPTOR, | 
 |  4278              CompileRun(buffer.start())->Int32Value()); | 
|  4279  |  4279  | 
|  4280     OS::SNPrintF(buffer, "named_values[%d].isNative()", i); |  4280     OS::SNPrintF(buffer, "named_values[%d].isNative()", i); | 
|  4281     CHECK(CompileRun(buffer.start())->BooleanValue()); |  4281     CHECK(CompileRun(buffer.start())->BooleanValue()); | 
|  4282   } |  4282   } | 
|  4283  |  4283  | 
|  4284   // Get the interceptor properties for the object with only indexed |  4284   // Get the interceptor properties for the object with only indexed | 
|  4285   // interceptor. |  4285   // interceptor. | 
|  4286   CompileRun("var indexed_values = indexed_mirror.properties()"); |  4286   CompileRun("var indexed_values = indexed_mirror.properties()"); | 
|  4287  |  4287  | 
|  4288   // Check that the properties are interceptor properties. |  4288   // Check that the properties are interceptor properties. | 
| (...skipping 3054 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  7343       "g(false);                       \n" |  7343       "g(false);                       \n" | 
|  7344       "%OptimizeFunctionOnNextCall(g); \n" |  7344       "%OptimizeFunctionOnNextCall(g); \n" | 
|  7345       "g(true);"; |  7345       "g(true);"; | 
|  7346   v8::Debug::SetDebugEventListener(DebugBreakInlineListener); |  7346   v8::Debug::SetDebugEventListener(DebugBreakInlineListener); | 
|  7347   inline_script = v8::Script::Compile(v8::String::New(source)); |  7347   inline_script = v8::Script::Compile(v8::String::New(source)); | 
|  7348   inline_script->Run(); |  7348   inline_script->Run(); | 
|  7349 } |  7349 } | 
|  7350  |  7350  | 
|  7351  |  7351  | 
|  7352 #endif  // ENABLE_DEBUGGER_SUPPORT |  7352 #endif  // ENABLE_DEBUGGER_SUPPORT | 
| OLD | NEW |