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

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

Issue 10697015: Separating transitions from descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using WhitenessWitness in TransitionArray code. Created 8 years, 5 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 | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-heap.cc » ('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 // 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
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
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
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698