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

Side by Side Diff: src/isolate.cc

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 years, 9 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/isolate.h ('k') | src/macros.py » ('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 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 preallocated_storage_preallocated_(false), 1479 preallocated_storage_preallocated_(false),
1480 inner_pointer_to_code_cache_(NULL), 1480 inner_pointer_to_code_cache_(NULL),
1481 write_input_buffer_(NULL), 1481 write_input_buffer_(NULL),
1482 global_handles_(NULL), 1482 global_handles_(NULL),
1483 context_switcher_(NULL), 1483 context_switcher_(NULL),
1484 thread_manager_(NULL), 1484 thread_manager_(NULL),
1485 fp_stubs_generated_(false), 1485 fp_stubs_generated_(false),
1486 has_installed_extensions_(false), 1486 has_installed_extensions_(false),
1487 string_tracker_(NULL), 1487 string_tracker_(NULL),
1488 regexp_stack_(NULL), 1488 regexp_stack_(NULL),
1489 date_cache_(NULL),
1489 embedder_data_(NULL), 1490 embedder_data_(NULL),
1490 context_exit_happened_(false) { 1491 context_exit_happened_(false) {
1491 TRACE_ISOLATE(constructor); 1492 TRACE_ISOLATE(constructor);
1492 1493
1493 memset(isolate_addresses_, 0, 1494 memset(isolate_addresses_, 0,
1494 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); 1495 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1));
1495 1496
1496 heap_.isolate_ = this; 1497 heap_.isolate_ = this;
1497 zone_.isolate_ = this; 1498 zone_.isolate_ = this;
1498 stack_guard_.isolate_ = this; 1499 stack_guard_.isolate_ = this;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 1612
1612 // Has to be called while counters_ are still alive. 1613 // Has to be called while counters_ are still alive.
1613 zone_.DeleteKeptSegment(); 1614 zone_.DeleteKeptSegment();
1614 1615
1615 delete[] assembler_spare_buffer_; 1616 delete[] assembler_spare_buffer_;
1616 assembler_spare_buffer_ = NULL; 1617 assembler_spare_buffer_ = NULL;
1617 1618
1618 delete unicode_cache_; 1619 delete unicode_cache_;
1619 unicode_cache_ = NULL; 1620 unicode_cache_ = NULL;
1620 1621
1622 delete date_cache_;
1623 date_cache_ = NULL;
1624
1621 delete regexp_stack_; 1625 delete regexp_stack_;
1622 regexp_stack_ = NULL; 1626 regexp_stack_ = NULL;
1623 1627
1624 delete descriptor_lookup_cache_; 1628 delete descriptor_lookup_cache_;
1625 descriptor_lookup_cache_ = NULL; 1629 descriptor_lookup_cache_ = NULL;
1626 delete context_slot_cache_; 1630 delete context_slot_cache_;
1627 context_slot_cache_ = NULL; 1631 context_slot_cache_ = NULL;
1628 delete keyed_lookup_cache_; 1632 delete keyed_lookup_cache_;
1629 keyed_lookup_cache_ = NULL; 1633 keyed_lookup_cache_ = NULL;
1630 1634
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 descriptor_lookup_cache_ = new DescriptorLookupCache(); 1779 descriptor_lookup_cache_ = new DescriptorLookupCache();
1776 unicode_cache_ = new UnicodeCache(); 1780 unicode_cache_ = new UnicodeCache();
1777 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 1781 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
1778 write_input_buffer_ = new StringInputBuffer(); 1782 write_input_buffer_ = new StringInputBuffer();
1779 global_handles_ = new GlobalHandles(this); 1783 global_handles_ = new GlobalHandles(this);
1780 bootstrapper_ = new Bootstrapper(); 1784 bootstrapper_ = new Bootstrapper();
1781 handle_scope_implementer_ = new HandleScopeImplementer(this); 1785 handle_scope_implementer_ = new HandleScopeImplementer(this);
1782 stub_cache_ = new StubCache(this); 1786 stub_cache_ = new StubCache(this);
1783 regexp_stack_ = new RegExpStack(); 1787 regexp_stack_ = new RegExpStack();
1784 regexp_stack_->isolate_ = this; 1788 regexp_stack_->isolate_ = this;
1789 date_cache_ = new DateCache();
1785 1790
1786 // Enable logging before setting up the heap 1791 // Enable logging before setting up the heap
1787 logger_->SetUp(); 1792 logger_->SetUp();
1788 1793
1789 CpuProfiler::SetUp(); 1794 CpuProfiler::SetUp();
1790 HeapProfiler::SetUp(); 1795 HeapProfiler::SetUp();
1791 1796
1792 // Initialize other runtime facilities 1797 // Initialize other runtime facilities
1793 #if defined(USE_SIMULATOR) 1798 #if defined(USE_SIMULATOR)
1794 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) 1799 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 1956
1952 #ifdef DEBUG 1957 #ifdef DEBUG
1953 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1958 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1954 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1959 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1955 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1960 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1956 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1961 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1957 #undef ISOLATE_FIELD_OFFSET 1962 #undef ISOLATE_FIELD_OFFSET
1958 #endif 1963 #endif
1959 1964
1960 } } // namespace v8::internal 1965 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698