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

Side by Side Diff: src/assembler.cc

Issue 2575313002: [promisehook] Implement PromiseHook (Closed)
Patch Set: add tests Created 4 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
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 ExternalReference ExternalReference::cpu_features() { 1559 ExternalReference ExternalReference::cpu_features() {
1560 DCHECK(CpuFeatures::initialized_); 1560 DCHECK(CpuFeatures::initialized_);
1561 return ExternalReference(&CpuFeatures::supported_); 1561 return ExternalReference(&CpuFeatures::supported_);
1562 } 1562 }
1563 1563
1564 ExternalReference ExternalReference::is_tail_call_elimination_enabled_address( 1564 ExternalReference ExternalReference::is_tail_call_elimination_enabled_address(
1565 Isolate* isolate) { 1565 Isolate* isolate) {
1566 return ExternalReference(isolate->is_tail_call_elimination_enabled_address()); 1566 return ExternalReference(isolate->is_tail_call_elimination_enabled_address());
1567 } 1567 }
1568 1568
1569 ExternalReference ExternalReference::is_promisehook_enabled_address( 1569 ExternalReference ExternalReference::is_promise_hook_enabled_address(
1570 Isolate* isolate) { 1570 Isolate* isolate) {
1571 return ExternalReference(isolate->is_promisehook_enabled_address()); 1571 return ExternalReference(isolate->is_promise_hook_enabled_address());
1572 } 1572 }
1573 1573
1574 ExternalReference ExternalReference::debug_is_active_address( 1574 ExternalReference ExternalReference::debug_is_active_address(
1575 Isolate* isolate) { 1575 Isolate* isolate) {
1576 return ExternalReference(isolate->debug()->is_active_address()); 1576 return ExternalReference(isolate->debug()->is_active_address());
1577 } 1577 }
1578 1578
1579 1579
1580 ExternalReference ExternalReference::debug_after_break_target_address( 1580 ExternalReference ExternalReference::debug_after_break_target_address(
1581 Isolate* isolate) { 1581 Isolate* isolate) {
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 1924
1925 1925
1926 void Assembler::DataAlign(int m) { 1926 void Assembler::DataAlign(int m) {
1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1928 while ((pc_offset() & (m - 1)) != 0) { 1928 while ((pc_offset() & (m - 1)) != 0) {
1929 db(0); 1929 db(0);
1930 } 1930 }
1931 } 1931 }
1932 } // namespace internal 1932 } // namespace internal
1933 } // namespace v8 1933 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | src/builtins/builtins-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698