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

Side by Side Diff: src/heap.cc

Issue 6286078: Landing for Zaheer Ahmad. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using __ str(pc, ...) Created 9 years, 10 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/heap.h ('k') | src/top.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 set_js_entry_code(*stub.GetCode()); 1936 set_js_entry_code(*stub.GetCode());
1937 } 1937 }
1938 1938
1939 1939
1940 void Heap::CreateJSConstructEntryStub() { 1940 void Heap::CreateJSConstructEntryStub() {
1941 JSConstructEntryStub stub; 1941 JSConstructEntryStub stub;
1942 set_js_construct_entry_code(*stub.GetCode()); 1942 set_js_construct_entry_code(*stub.GetCode());
1943 } 1943 }
1944 1944
1945 1945
1946 #if V8_TARGET_ARCH_ARM
1947 void Heap::CreateDirectCEntryStub() {
1948 DirectCEntryStub stub;
1949 set_direct_c_entry_code(*stub.GetCode());
1950 }
1951 #endif
1952
1953
1946 void Heap::CreateFixedStubs() { 1954 void Heap::CreateFixedStubs() {
1947 // Here we create roots for fixed stubs. They are needed at GC 1955 // Here we create roots for fixed stubs. They are needed at GC
1948 // for cooking and uncooking (check out frames.cc). 1956 // for cooking and uncooking (check out frames.cc).
1949 // The eliminates the need for doing dictionary lookup in the 1957 // The eliminates the need for doing dictionary lookup in the
1950 // stub cache for these stubs. 1958 // stub cache for these stubs.
1951 HandleScope scope; 1959 HandleScope scope;
1952 // gcc-4.4 has problem generating correct code of following snippet: 1960 // gcc-4.4 has problem generating correct code of following snippet:
1953 // { CEntryStub stub; 1961 // { CEntryStub stub;
1954 // c_entry_code_ = *stub.GetCode(); 1962 // c_entry_code_ = *stub.GetCode();
1955 // } 1963 // }
1956 // { DebuggerStatementStub stub; 1964 // { DebuggerStatementStub stub;
1957 // debugger_statement_code_ = *stub.GetCode(); 1965 // debugger_statement_code_ = *stub.GetCode();
1958 // } 1966 // }
1959 // To workaround the problem, make separate functions without inlining. 1967 // To workaround the problem, make separate functions without inlining.
1960 Heap::CreateCEntryStub(); 1968 Heap::CreateCEntryStub();
1961 Heap::CreateJSEntryStub(); 1969 Heap::CreateJSEntryStub();
1962 Heap::CreateJSConstructEntryStub(); 1970 Heap::CreateJSConstructEntryStub();
1963 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 1971 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
1964 Heap::CreateRegExpCEntryStub(); 1972 Heap::CreateRegExpCEntryStub();
1965 #endif 1973 #endif
1974 #if V8_TARGET_ARCH_ARM
1975 Heap::CreateDirectCEntryStub();
1976 #endif
1966 } 1977 }
1967 1978
1968 1979
1969 bool Heap::CreateInitialObjects() { 1980 bool Heap::CreateInitialObjects() {
1970 Object* obj; 1981 Object* obj;
1971 1982
1972 // The -0 value must be set before NumberFromDouble works. 1983 // The -0 value must be set before NumberFromDouble works.
1973 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); 1984 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED);
1974 if (!maybe_obj->ToObject(&obj)) return false; 1985 if (!maybe_obj->ToObject(&obj)) return false;
1975 } 1986 }
(...skipping 3601 matching lines...) Expand 10 before | Expand all | Expand 10 after
5577 void ExternalStringTable::TearDown() { 5588 void ExternalStringTable::TearDown() {
5578 new_space_strings_.Free(); 5589 new_space_strings_.Free();
5579 old_space_strings_.Free(); 5590 old_space_strings_.Free();
5580 } 5591 }
5581 5592
5582 5593
5583 List<Object*> ExternalStringTable::new_space_strings_; 5594 List<Object*> ExternalStringTable::new_space_strings_;
5584 List<Object*> ExternalStringTable::old_space_strings_; 5595 List<Object*> ExternalStringTable::old_space_strings_;
5585 5596
5586 } } // namespace v8::internal 5597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698