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

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

Issue 261253005: Clean up debugger flags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 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 | « src/x64/macro-assembler-x64.cc ('k') | no next file » | 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 3929 matching lines...) Expand 10 before | Expand all | Expand 10 after
3940 // Now mortal code should be dead. 3940 // Now mortal code should be dead.
3941 code_chain_length_after = GetCodeChainLength(*code); 3941 code_chain_length_after = GetCodeChainLength(*code);
3942 CHECK_EQ(code_chain_length_before - 1, code_chain_length_after); 3942 CHECK_EQ(code_chain_length_before - 1, code_chain_length_after);
3943 } 3943 }
3944 3944
3945 3945
3946 static Handle<Code> DummyOptimizedCode(Isolate* isolate) { 3946 static Handle<Code> DummyOptimizedCode(Isolate* isolate) {
3947 i::byte buffer[i::Assembler::kMinimalBufferSize]; 3947 i::byte buffer[i::Assembler::kMinimalBufferSize];
3948 MacroAssembler masm(isolate, buffer, sizeof(buffer)); 3948 MacroAssembler masm(isolate, buffer, sizeof(buffer));
3949 CodeDesc desc; 3949 CodeDesc desc;
3950 masm.Prologue(BUILD_FUNCTION_FRAME); 3950 masm.Push(isolate->factory()->undefined_value());
3951 masm.Drop(1);
3951 masm.GetCode(&desc); 3952 masm.GetCode(&desc);
3952 Handle<Object> undefined(isolate->heap()->undefined_value(), isolate); 3953 Handle<Object> undefined(isolate->heap()->undefined_value(), isolate);
3953 Handle<Code> code = isolate->factory()->NewCode( 3954 Handle<Code> code = isolate->factory()->NewCode(
3954 desc, Code::ComputeFlags(Code::OPTIMIZED_FUNCTION), undefined); 3955 desc, Code::ComputeFlags(Code::OPTIMIZED_FUNCTION), undefined);
3955 CHECK(code->IsCode()); 3956 CHECK(code->IsCode());
3956 return code; 3957 return code;
3957 } 3958 }
3958 3959
3959 3960
3960 TEST(NextCodeLinkIsWeak2) { 3961 TEST(NextCodeLinkIsWeak2) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
4204 "array;"); 4205 "array;");
4205 4206
4206 Handle<JSObject> o = 4207 Handle<JSObject> o =
4207 v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(result)); 4208 v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(result));
4208 CHECK(heap->InOldPointerSpace(o->elements())); 4209 CHECK(heap->InOldPointerSpace(o->elements()));
4209 CHECK(heap->InOldPointerSpace(*o)); 4210 CHECK(heap->InOldPointerSpace(*o));
4210 Page* page = Page::FromAddress(o->elements()->address()); 4211 Page* page = Page::FromAddress(o->elements()->address());
4211 CHECK(page->WasSwept() || 4212 CHECK(page->WasSwept() ||
4212 Marking::IsBlack(Marking::MarkBitFrom(o->elements()))); 4213 Marking::IsBlack(Marking::MarkBitFrom(o->elements())));
4213 } 4214 }
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698