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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 85453002: Rollback of r18029 in bleeding_edge branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/v8-counters.h ('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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 if (emit_debug_code()) { 400 if (emit_debug_code()) {
401 Label ok; 401 Label ok;
402 cmpq(value, Operand(address, 0)); 402 cmpq(value, Operand(address, 0));
403 j(equal, &ok, Label::kNear); 403 j(equal, &ok, Label::kNear);
404 int3(); 404 int3();
405 bind(&ok); 405 bind(&ok);
406 } 406 }
407 407
408 // Count number of write barriers in generated code.
409 isolate()->counters()->write_barriers_static()->Increment();
410 IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
411
412 // First, check if a write barrier is even needed. The tests below 408 // First, check if a write barrier is even needed. The tests below
413 // catch stores of smis and stores into the young generation. 409 // catch stores of smis and stores into the young generation.
414 Label done; 410 Label done;
415 411
416 if (smi_check == INLINE_SMI_CHECK) { 412 if (smi_check == INLINE_SMI_CHECK) {
417 // Skip barrier if writing a smi. 413 // Skip barrier if writing a smi.
418 JumpIfSmi(value, &done); 414 JumpIfSmi(value, &done);
419 } 415 }
420 416
421 CheckPageFlag(value, 417 CheckPageFlag(value,
(...skipping 4633 matching lines...) Expand 10 before | Expand all | Expand 10 after
5055 j(equal, found); 5051 j(equal, found);
5056 movq(current, FieldOperand(current, Map::kPrototypeOffset)); 5052 movq(current, FieldOperand(current, Map::kPrototypeOffset));
5057 CompareRoot(current, Heap::kNullValueRootIndex); 5053 CompareRoot(current, Heap::kNullValueRootIndex);
5058 j(not_equal, &loop_again); 5054 j(not_equal, &loop_again);
5059 } 5055 }
5060 5056
5061 5057
5062 } } // namespace v8::internal 5058 } } // namespace v8::internal
5063 5059
5064 #endif // V8_TARGET_ARCH_X64 5060 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698